The Panel
Environment Variables
Inject API keys, database URLs, and config into your app without touching code.
1
Open it
In your site dashboard, click Environment Variables.
2
Add a variable
Enter a key and value, then click Add Variable. Keys are uppercase by convention:
STRIPE_KEY, MAIL_HOST, APP_URL.3
Secrets are masked
Values are encrypted at rest and shown as dots. Click the eye icon to reveal, or copy without revealing.
4
Restart to apply
After adding or changing variables, go to Actions → Restart. Your container is recreated with the new environment.
5
Database variables are automatic
When you wire a database, we add
DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD, and DATABASE_URL for you. Don't add them by hand.How your app reads them
They are real process environment variables. Node:
process.env.KEY · Python: os.environ["KEY"] · PHP: getenv("KEY") · Laravel: env("KEY")Never commit secrets
Keep keys in Environment Variables, not in your repo. If a key leaks, rotate it at the provider and update it here.
