Skip to content
AutoCore1.0.0-rc.1 · Release Candidate
1.0.0-rc.1 · Release Candidate1 min read

Environment Variables

Source-verified runtime environment keys grouped by database, application, storage, mail, and provider concerns.

The current API environment schema contains 52 named keys. They are validated before application boot; production additionally requires DATABASE_URL and a non-development JWT_ACCESS_SECRET, and requires a Meilisearch master key when a Meilisearch host is configured.

GroupSource-verified keys
RuntimeNODE_ENV, APP_VERSION, API_PORT, LOG_LEVEL, ENABLE_API_DOCS
Data servicesDATABASE_URL, REDIS_URL, MEILISEARCH_HOST, MEILISEARCH_MASTER_KEY
Auth/sessionJWT_ACCESS_SECRET, JWT_ACCESS_TTL, REFRESH_TOKEN_TTL_DAYS, AUTH_COOKIE_NAME, AUTH_COOKIE_SECURE
URLs and CORSNEXT_PUBLIC_APP_URL, NEXT_PUBLIC_API_URL, ADMIN_APP_URL, CORS_ALLOWED_ORIGINS
Media and mailMEDIA_MAX_FILE_SIZE_MB, MEDIA_LOCAL_DIR, RESEND_API_KEY, EMAIL_FROM, EMAIL_REPLY_TO, R2 keys and bucket fields
Payment providersmock, Stripe, iyzico, and PayTR enablement, credential, callback, timeout, and reconciliation fields
OperationsSENTRY_DSN and provider return URL

Secret-valued keys are documented by name and validation rule only. No value, real endpoint, or live provider activation is published.

Verification

Compare a redacted environment inventory with apps/api/src/config/env.validation.ts, run application boot validation, and record the result. A missing required production value is a blocker.

Related articles