Environment Variables Configuration
Set the minimum environment variables required to run the app locally.
For local development, put secrets and local overrides in ./.env.local.
This page intentionally avoids assuming committed ./.env.local* files already exist in your checkout.
Minimum Local Setup
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgresBETTER_AUTH_SECRET=replace-meNEXT_PUBLIC_SITE_URL=http://localhost:3000NEXT_PUBLIC_PRODUCT_NAME=My AppNEXT_PUBLIC_DEFAULT_LOCALE=enNEXT_PUBLIC_ACCOUNT_MODE=hybridMAILER_PROVIDER=nodemailerEMAIL_SENDER=My App <noreply@example.com>If you use the provided Docker services, adjust database and mailer values to match that local setup.
Where Config Is Parsed
Use these files to see what the app actually expects:
apps/web/config/app.config.tsapps/web/config/auth.config.tsapps/web/config/account-mode.config.tsapps/web/config/feature-flags.config.ts
Sensitive Values
Keep secrets such as these in ./.env.local or in your deployment provider:
BETTER_AUTH_SECRETDATABASE_URLTURNSTILE_SECRET_KEYRESEND_API_KEY- SMTP credentials
- Stripe and Polar secrets
Next Step
For the full variable reference, see Environment Variables Reference.