Frontend Environment Variables
These values drive the Vite build that runs inside the Docker stack. They all live in docker/.stack.env. Update the file directly, then restart the stack so the frontend rebuilds with the new configuration.
VITE_API_URL
- Decide how the browser should reach the backend:
http://localhost:8000works when you run the stack locally without tunnels and open the site on the same machine.
- Paste the exact origin (scheme + host + port) into
VITE_API_URL. - Confirm the backend actually responds at that address before rebuilding the site.
VITE_GOOGLE_CLIENT_ID
- In the Google Cloud Console, create an OAuth client (type Web Application).
- Add every browser origin that will load your frontend to “Authorized JavaScript origins” (in this case
http://localhost:1420). - Set the redirect URI to match
GOOGLE_REDIRECT_URIused by the backend (defaults tohttp://localhost:8000/auth/google/callback). - Copy the generated client ID and assign it to
VITE_GOOGLE_CLIENT_ID.
VITE_STRIPE_PUBLISHABLE_KEY (Optional, for payment flow)
- Open the Stripe Dashboard → Developers → API keys.
- Copy the “Publishable key” (test or live). Start with the test key while iterating.
- Paste it into
VITE_STRIPE_PUBLISHABLE_KEY.
VITE_SENTRY_DSN
- Optional. If you want browser error tracking, create a project in Sentry and copy its DSN.
- Paste the DSN (looks like
https://public@sentry.io/12345) intoVITE_SENTRY_DSN.