Creating environments
- Go to Settings > Environments
- Click Add Environment
- Enter a name (e.g., “staging”)
- Click Create
Configuring connectors per environment
When you edit a resource, you can configure each environment independently:- Go to Organization Settings > Connectors
- Click on a connector 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 |
Default Build Environment
Organizations can designate a separate “default build environment” that the AI coder uses by default, distinct from the production environment. This is useful for testing and development workflows where you want the AI to work against staging data.Setting a default build environment
- Go to Settings > Environments
- In the environment list, select the Set as default build option next to your chosen environment
- The environment will be marked with a “Default” badge
Production deployments always use the default (production) environment, regardless of the default build environment setting.
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.