Default environments
Every new Varo Cloud project is provisioned with three ready-to-use environments. Each environment is isolated, meaning deployments, variables, and secrets in one environment do not affect the others.Development
Intended for active development and fast iteration. Deployments here are lightweight, with relaxed resource limits and verbose logging enabled by default. Use this environment to test changes before promoting them upstream.
Staging
A pre-production environment that mirrors your production configuration as closely as possible. Run integration tests, QA checks, and stakeholder reviews here before promoting to production.
Production
Serves live user traffic. Production deployments are subject to your plan’s full resource allocation, uptime SLA, and alerting rules. Changes should always pass staging validation before reaching this environment.
Create a custom environment
In addition to the three default environments, you can create custom environments for use cases such as feature branches, load testing, or client previews. To create a custom environment:- Open your project in the Varo Cloud dashboard.
- Navigate to the Environments tab.
- Click New Environment.
- Enter a name for the environment and select its type (Development, Staging, or Production behavior profile).
- Click Save.
Environment variables and secrets
Each environment maintains its own set of environment variables that are injected into your application at runtime. Variables are encrypted at rest and are never exposed in build logs or API responses after creation. To add or update variables, navigate to Settings → Environment Variables within your project, select the target environment, and click Add Variable. Varo Cloud supports two types of variables:| Type | Description |
|---|---|
| Plain | Visible in the dashboard after creation. Use for non-sensitive configuration like feature flags or API endpoint URLs. |
| Secret | Masked in the dashboard after saving. Use for sensitive values like database passwords, third-party API keys, and tokens. |
Promoting between environments
The recommended workflow in Varo Cloud is to deploy to staging first, validate your changes, and then promote the same deployment artifact to production. Promoting preserves the exact build so you are never shipping untested code to production. To promote a deployment from the dashboard:- Go to the Environments tab in your project.
- Locate the deployment you want to promote in the staging environment.
- Click Promote and select Production as the target environment.
- Confirm the promotion.
proj_abc123 with your project ID and dep_abc123 with the ID of the staging deployment you want to promote. The API returns the new production deployment object on success.
Environment-specific configuration
Any configuration value set at the environment level takes precedence over project-level defaults. This allows you to define sensible defaults for your entire project while overriding specific values — such as log verbosity, replica counts, or feature flags — on a per-environment basis. For example, you might setLOG_LEVEL=info at the project level and override it with LOG_LEVEL=debug in the development environment without touching staging or production.
