Powered by NovaDocs
Welcome to NovaDocsStart with Installation → Install with Docker, or switch language to Polish (PL).

Environment variables

Admin5 min readUpdated Aug 7, 2026

Environment variables

These live in your .env file (or in Vercel → Settings → Environment Variables).

Copy from .env.example and fill in real values.

Required

VariableWhat it does
DATABASE_URLConnection to your database
AUTH_SECRETSecret used to sign login sessions — make it long and random
NEXT_PUBLIC_APP_URLPublic URL of your site, like https://docs.example.com

Admin seed (first setup)

VariableWhat it does
SEED_ADMIN_EMAILAdmin login email created by npm run db:seed
SEED_ADMIN_PASSWORDAdmin password
SEED_ADMIN_NAMEDisplay name

Media (images & files)

VariableWhat it does
SUPABASE_URLOptional. Your Supabase project URL
SUPABASE_SERVICE_ROLE_KEYOptional. Enables Supabase Storage for uploads

If the service role key is not set, uploads are stored in the database instead. That works on any host (VPS, Docker, Vercel).

Custom domains

VariableWhat it does
CUSTOM_DOMAIN_MAPJSON map of hostname → project slug

Example:

env
CUSTOM_DOMAIN_MAP={"docs.myproduct.com":"guide"}

Visitors to docs.myproduct.com see the guide project docs.

Email (optional)

VariableWhat it does
SMTP_HOSTMail server host
SMTP_PORTUsually 587
SMTP_USERSMTP username
SMTP_PASSSMTP password
EMAIL_FROMFrom address shown to users

Without SMTP, the app still runs. Verification / reset messages go to the server console.

Was this helpful?