Environment Variables

Backend

KeyRequiredDefault
DATABASE_URLyesinjected by Railway
OPENROUTER_API_KEYyes
OPENROUTER_MODELnoopenai/gpt-4o-mini
OPENROUTER_BASE_URLnohttps://openrouter.ai/api/v1
BACKEND_JWT_SECRETyesshared with the Worker; HS256 secret for bearer JWTs
AUTH_SHARED_SECRETyes (if OAuth)shared with the Worker; required on /auth/oauth-upsert
DAILY_TOKEN_BUDGETno50000
BRAVE_API_KEYnoenables /applications/{id}/suggested-profiles; empty hides the feature
BRAVE_SEARCH_URLnohttps://api.search.brave.com/res/v1/web/search
CV_PDF_MAX_BYTESno5000000
RESEND_API_KEYyesfor verify/reset emails
EMAIL_FROMyesverified Resend sender
FRONTEND_BASE_URLyesorigin used in mailed links
CORS_ORIGINSnohttp://localhost:3000
LOGFIRE_TOKENno
APP_ENVnodevelopment

Frontend

KeyRequiredWhereNotes
NEXT_PUBLIC_API_URLyesbuild-timebackend base URL
NEXT_PUBLIC_AUTH_GOOGLE_ENABLEDnobuild-time1 to show Google button
NEXT_PUBLIC_AUTH_GITHUB_ENABLEDnobuild-time1 to show GitHub button
AUTH_SECRETyeswrangler secretAuth.js session encryption
BACKEND_JWT_SECRETyeswrangler secretsame value as backend
AUTH_SHARED_SECRETyes (if OAuth)wrangler secretsame value as backend
AUTH_GOOGLE_ID / AUTH_GOOGLE_SECRETnowrangler secretGoogle OAuth
AUTH_GITHUB_ID / AUTH_GITHUB_SECRETnowrangler secretGitHub OAuth