Never commit
.env.local or paste production secrets into docs, tickets, or chat. Rotate any credential that has been exposed.Required
NEXTAUTH_SECRET:
Optional
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
- Local
- Production
http://localhost:3000/api/auth/callback/googleVercel
Add the same keys in Project → Settings → Environment Variables for Production, Preview, and Development as needed. Redeploy after changingNEXTAUTH_URL or OAuth clients.