Client Area

Environment Variables

1 min read6 Apr 20264 views

In this article

  • 1Setting Variables
  • 2System Variables (auto-set)
  • 3Best Practices

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 on
  • DATABASE_URL — PostgreSQL connection string (if database provisioned)

Best Practices

  • Never commit secrets to git
  • Use descriptive names: STRIPE_SECRET_KEY not KEY1
  • Values are masked in dashboard

Was this article helpful?

Your feedback helps us improve our documentation

Still need help? Submit a support ticket

Environment Variables - Knowledge Base