Get started with environment variables
Create environment variables
WARNING
Deploy the affected environments for new variables to take effect.
Open the project and click on the "Variables" tab.
In the "Environment variables" section, enter a key for the new environment variable.
Choose how to set its value:
- Same value for all deploy contexts: Enter one value.
- Different value for each deploy context: Enter the values for:
- Production: Only the production environment has that value.
- Preview: Every preview environment gets the value.
- Environment: Select specific environments that should get a value specific to them.
Click on the "Create variable" button.

Modify and delete environment variables
WARNING
Re-deploy the affected environments to apply the changes.
Open the project and click on the "Variables" tab.
Below the form, click on the variable to expand it, then click on "Edit".

Update the values and click on "Update variable".
To delete a variable:
- Open the project and click on the "Variables" tab.
- Below the form, click on the variable to expand it.
- Click on the "Delete" button and confirm the deletion.
Deleting a variable cannot be undone.