Add environment variables

Store secrets and config per environment; encrypted at rest, injected at build and runtime.

You can store configuration values and secrets that your builds need without hardcoding them into your codebase. Environment variables let you keep sensitive data secure while making it easy to change settings across different environments.

1

Open Environments in the sidebar.

Open Environments in the sidebar.

The Environments section is where you manage all variables for each deployment stage.

2

Click Add variable.

Click Add variable.

 

3

Enter the Value; values marked Encrypted are write-only and cannot be read back.

Values marked Encrypted are write-only — nobody can read them back, not even account owners.

 

Encrypted variables are write-only for security — once saved, you cannot view them again. Make sure you have the value recorded elsewhere before saving.

 

4

Click Save variable; it is available to the next build.

Click Save variable — it is available to the next build without redeploying manually.

 

What's next

Your variables are now injected automatically at build and runtime. Next, deploy your application to see them in action across your environments.