Skip to main content
Copy the sample file at the repo root:
Never commit .env.local or paste production secrets into docs, tickets, or chat. Rotate any credential that has been exposed.

Required

Generate NEXTAUTH_SECRET:

Optional

Without REDIS_URL, locks and caches are in-memory per serverless isolate and will not coordinate across instances. Set GEO_RESTRICT=deny only after Vercel Firewall log rules show no legitimate New York schools matching as out-of-state. Missing geo headers (localhost) are allowed. HTML denials then show /unavailable; APIs still return 403 JSON. See Edge proxy and security. Add NEXTAUTH_SECRET (and Preview NEXTAUTH_URL) to Preview, not only Production — next build evaluates API routes while collecting page data. Super Admins can confirm whether these variables are set (not their values) on System health.

Google redirect URIs

http://localhost:3000/api/auth/callback/google

Vercel

Add the same keys in Project → Settings → Environment Variables for Production, Preview, and Development as needed. Redeploy after changing NEXTAUTH_URL or OAuth clients.