Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Deployment environment

One setting changes how strictly everything else is validated.

Synopsis

environment = "development"

Options

SettingDefaultEnv varWhen to change
environment"development"ORION_ENVIRONMENTSet to "production" before exposing an instance to anything you care about.

Any value starting with prod (case-insensitive) is a production environment, which turns three warnings into startup errors:

  • Admin auth must be enabled. admin_auth.enabled = false becomes a fatal config error instead of a log line nobody reads.
  • CORS may not be ["*"]. The wildcard is rejected; list explicit origins.
  • A cluster may not migrate at boot. cluster.enabled = true with storage.auto_migrate = true is refused. See auto_migrate in a cluster.

That is the whole mechanism — it does not change any other default. Everything else on this page is still yours to set, and the Production Checklist is the list worth walking.

The variable is ORION_ENVIRONMENT, derived from the field name like every other override. ORION_ENV was the pre-1.0 alias and is now refused at startup rather than silently ignored.

Last verified 14 September 2026