Configuration Reference
Environment Variables
Authentication
# Auth.js secret for session encryption
AUTH_SECRET=random-string-32-chars
# Google OAuth
AUTH_GOOGLE_CLIENT_ID=xxx.apps.googleusercontent.com
AUTH_GOOGLE_CLIENT_SECRET=GOCSPX-xxx
# Microsoft Entra ID
AUTH_MICROSOFT_ENTRA_ID_ID=xxx
AUTH_MICROSOFT_ENTRA_ID_SECRET=xxxDatabase
# Write database (Neon primary region)
WRITE_DATABASE_URL=postgres://user:[email protected]/neondb
# Read database (for queries)
READ_DATABASE_URL=postgres://user:[email protected]/neondb
# Read replicas for migrations (JSON)
READ_DATABASE_MIGRATION_ONLY_URLS={"EU":"postgres://...","APAC":"postgres://..."}JWT Keys
Analytics
Cloudflare (Deployment)
Wrangler Configuration
SvelteKit Configuration
Vite Configuration
Drizzle Configuration
TypeScript Configuration
Related Documentation
Last updated