NextBento env var reference, including NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY, Stripe keys, Resend, and optional Search Console and IndexNow values.
Copy these into .env.local. The value people search for most is NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY — that is the Supabase anon/publishable key from Project Settings. Missing required vars fail validation at build or runtime.
NextBento validates environment variables at build/runtime using Zod in lib/config/env.ts and lib/config/validate-env.ts. Missing required vars will cause clear error messages.
Security Notes
Never commit.env.local to git (it's in .gitignore)
Use different keys for development and production
SUPABASE_SECRET_KEY and STRIPE_SECRET_KEY must never be exposed to the client
Rotate keys if they are ever exposed
Use Vercel (or your host) environment variables for production — never hardcode