Skip to main content
Environments let you maintain separate resource configurations for different stages. Use a staging database for testing and production credentials when you deploy.

Creating environments

  1. Go to Settings > Environments
  2. Click Add Environment
  3. Enter a name (e.g., “staging”)
  4. Click Create
Every organization has a default environment that represents production. This environment cannot be deleted or renamed.

Configuring resources per environment

When you edit a resource, you can configure each environment independently:
  1. Go to Organization Settings > Resources
  2. Click on a resource to edit it
  3. Select the desired environment
  4. Enter the connection details for that environment
  5. Click Save

Example

EnvironmentHostDatabase
defaultprod.example.commyapp_prod
stagingstaging.example.commyapp_staging
If an environment has no specific configuration, it falls back to the default environment’s settings.

Selecting environments in the web editor

The web editor includes an environment selector in the bottom right of the screen. Click it to switch between available environments. When you switch environments:
  • The app reloads with the new resource configuration
  • API calls use the selected environment’s credentials
  • Preview reflects the environment-specific data
Production deployments always use the default environment.