Skip to main content

Environment variables

Vite embeds VITE_* values in the browser bundle. Set private keys on the intended Convex deployment.

Frontend build values

For local development on either supported Vite port, omit VITE_REDIRECT_URI to derive the callback from the current origin. Use .env.local locally and .env.production.local for your production build. Rebuild and upload after changing a frontend value. Do not commit these local files.

Backend values

Select development or production in the Convex dashboard before setting values. Never put API keys or webhook secrets into VITE_* variables. The current browser AuthKit integration does not use WORKOS_COOKIE_PASSWORD.

Custom-domain roles

Hosted OpenSync uses https://app.opensync.dev for its Convex client and https://api.opensync.dev for HTTP/plugin requests. The dashboard is https://www.opensync.dev. After verifying custom domains in Convex, its Override Environment Variables settings can make CONVEX_CLOUD_URL use the client domain and CONVEX_SITE_URL use the HTTP domain. Those are platform variables, not frontend build settings. Forks must use their own deployments and domains.