Documentation
Environments
Environments separate configuration and resources for dev, staging, and production.
Why environments matter
Environments keep changes isolated so you can test safely without disrupting production. Each environment has its own services, variables, and deployments.
Common environment setup
- Dev for local testing and rapid iteration.
- Staging for QA and release validation.
- Production for live traffic.
Environment tips
- Use different databases per environment to avoid data leaks.
- Keep secrets scoped to a single environment.
- Mirror configuration between staging and production for reliable tests.