Environment Variables
Securely configure secrets and runtime values before deployment.
You should never hardcode sensitive information in your repository. Use the Encrypted secrets section on New Service or in the service Configuration tab to manage them.
Adding Variables Manually
Click Add Variable to create a new blank row. Enter the key on the left (e.g., STRIPE_SECRET_KEY) and the value on the right.
env
DATABASE_URL=postgresql://user:password@localhost:5432/mydb
STRIPE_SECRET_KEY=sk_test_123456789
API_KEY=your_api_key_hereBulk Importing `.env`
If you have a large .env file locally, you can click Load .env and upload it. The dashboard will automatically parse the file and fill out the fields for you, saving you from copying and pasting dozens of keys.
Supported file format
The importer accepts standard KEY=value lines. Empty lines and comments are ignored. Values wrapped in single or double quotes are accepted.
env
# Comments are ignored
FLASK_ENV=production
DATABASE_URL="postgresql://user:password@host:5432/app"
SECRET_KEY='change-me'