StudyStudio
Custom Server Environment

Convex Database

Point the app at your Convex deployment

Even on a custom server, StudyStudio uses Convex Cloud for its database - you do not self-host the database.

Deploy Convex Functions

From the server (or your local machine with access to the repo), run:

npx convex deploy

This pushes the schema and functions to your production Convex deployment.

Set the URLs

Make sure NEXT_PUBLIC_CONVEX_URL and NEXT_PUBLIC_CONVEX_SITE_URL in your server's .env match your Convex deployment URLs.

Set Convex Env Variables

In the Convex dashboard, add the runtime secrets your functions need: BETTER_AUTH_SECRET, RESEND_API_KEY, RESEND_SENDER_EMAIL, and GOOGLE_GENERATIVE_AI_API_KEY.

On this page