Environment Variables
The Environment tab provides a key-value editor for managing your app's environment variables. Variables are securely stored and deployed to your server. This tab is available for all app types except Static.
Open your app's detail page and click the Environment tab.
Adding variables
- Click + Add Variable (top-right) or Add Your First Variable (if none exist yet).
- Enter the variable Key in the left field (e.g.,
DATABASE_URL). - Enter the Value in the right field.
- Repeat for additional variables.
Editing variables
Update any key or value inline. Changes are not applied until you click Save & Deploy.
Removing variables
Click the trash icon on the right side of any row to remove that variable.
Masked values
All values are masked (shown as password dots) by default. Click the eye icon on any row to reveal the value. Click it again to re-mask. This prevents accidental exposure of secrets when screen-sharing or working in public.
Saving and deploying
Click Save & Deploy to:
- Securely save all variables.
- Deploy the environment variables to your server.
- Restart the application so the new variables take effect.
After deploying, the app is automatically restarted to pick up the changes.
Tips
- Use
UPPER_SNAKE_CASEfor key names by convention. - Do not include quotes around values — they are added automatically where needed.
- If your app requires many variables, consider adding them all before clicking Save & Deploy to avoid multiple restarts.
- Variables set here override any defaults baked into your application code.