Skip to main content

Environments

APP_ENVIRONMENT in app.enum.ts: production, staging, development, local.

BehaviorNon-productionProduction
SwaggerMountedNot mounted
Sentry DSNOptional until you set productionRequired by validation
JWT secret lengthExample file says >= 32 in productionEnforced when APP_ENV=production
Log level in ComposeContainers default info and JSONSame comment

The production bootstrap runbook says the same Compose file runs locally and on the server, and only .env changes. Read docs/runbooks/production-bootstrap.md before changing host layout. It includes Cloudflare and security-group steps that this page does not copy.

Replica counts​

Compose mentions API_REPLICAS as a name. AI_CONTEXT.md says the scheduler must stay single-replica.

Unknown — requires developer confirmation: whether the deploy workflow enforces a single scheduler, and what the production replica counts are for API versus worker.

Admin and warehouse hosts​

Unknown from the API compose file. Admin has netlify.toml and wrangler.json. Warehouse has android/.