Environments overview
Environments deploy different branches of your repository in isolation, so you can test changes before they go live.
Production environment
The production environment is the live version of your application. Preview environments are for testing changes without affecting it or its users.
The production environment is automatically assigned "production" domains, while preview environments can only have domains individually assigned to them.
Using the "Promote to Production" button on an environment in the project overview, you can change which environment is considered the production environment.
Manage environments
Create environments
- Navigate to the project you want to create a new environment for.
- Click on the "Create environment" button.
- Enter a name for your environment in the "Name" field.
- Select a deployment strategy for your environment:
- Manual: You can manually deploy changes to the environment using the "New Deployment" button in the environment dashboard.
- Branch: The environment will automatically deploy whenever a new commit is pushed to a specific branch in the project's repository.
- Tag: The environment will automatically deploy when a new tag is pushed to the project's repository.
- Depending on the deployment strategy you choose, you may need to enter additional settings, such as the branch name.
- Click on the "Create Environment" button to create your new environment.

Modify existing environments
- Open the project of the environment.
- Click on the environment to open it, and then click on the "Settings" tab.

- In the "General" settings, change the name or the access control strictness and click "Save".
- To change the deployment strategy, select it in the "Automatic deployment" settings.
- Click "Save" in the "Automatic deployment" settings.
Deleting environments
- Open the project of the environment that you want to delete.
- Click on the environment that you want to delete.
- Navigate to the "Settings" tab.
- Scroll down to the "Delete Environment" section.
- Click the "Delete" button.
This permanently removes all data of the environment, including its deployments and logs, so export any important data beforehand.
The production environment can't be deleted. To delete it, first promote another environment to production.
Use environments
Environment variables
Environment variables configure the build and the running application of your project per deploy context.
Access control
You can restrict who can access the environments of your project:
- Password Protection - Protect environments with a username and password.
- IP Allow List - Only allow visitors from specific IP addresses.
If you use both, the Access Control Strictness decides whether visitors have to pass both checks (Strict) or just one (Relaxed).