.env.local.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.local.example)
OAUTH_CLIENT_SECRET
secret
SMTP_URL
HIBP_KANON_API_TOKEN
secret
Have I Been Pwned setup
HIBP_NOTIFY_TOKEN
secret
AWS_ACCESS_KEY_ID
secret
Used for `npm run create-location-data`
AWS_SECRET_ACCESS_KEY
secret
ADMINS
Settings you might want to customise
DATABASE_URL
secret
REDIS_URL
secret
APP_ENV
Good defaults for a local setup:
SERVER_URL
PORT
NEXTAUTH_URL
NEXTAUTH_SECRET
secret
A random string, see https://next-auth.js.org/configuration/options#secret
EMAIL_FROM
This needs to match the "From:" address for the AWS account linked to $SMTP_URL
NEXT_PUBLIC_GA4_DEBUG_MODE
Whether GA4 sends data or not. NOTE: must be set in build environment.
HIBP_KANON_API_ROOT
HIBP setup
SENTRY_DSN
Sentry setup
NEXT_PUBLIC_SENTRY_DSN
FXA_SETTINGS_URL
Mozilla Accounts URLs