Creating environments
- Go to Settings > Environments
- Click Add Environment
- Enter a name (e.g., “staging”)
- Click Create
Configuring resources per environment
When you edit a resource, you can configure each environment independently:- Go to Organization Settings > Resources
- Click on a resource to edit it
- Select the desired environment
- Enter the connection details for that environment
- Click Save
Example
| Environment | Host | Database |
|---|---|---|
| default | prod.example.com | myapp_prod |
| staging | staging.example.com | myapp_staging |
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.