Environment Variables
Configure your app with environment variables. All values are encrypted at rest.
Setting Variables
Go to Services > PaaS > Your App > Env Vars and click Add Variable.
System Variables (auto-set)
PORT— The port your app must listen onDATABASE_URL— PostgreSQL connection string (if database provisioned)
Best Practices
- Never commit secrets to git
- Use descriptive names:
STRIPE_SECRET_KEYnotKEY1 - Values are masked in dashboard