Skip to content

Configure environment variables

Goal: Set runtime environment variables that your app reads via process.env, os.environ, etc.

Prerequisites:

  • An app created in uploy.
  1. Open the app detail page.
  2. Click the Environment tab.
  3. Click Add variable, enter a Name and Value, and save.
  4. To edit, click the pencil icon next to a row. To remove, click the trash icon.
  5. Click Apply changes. The app restarts with the new environment.

Check the app’s runtime logs after restart. Your app should print the new value if it logs environment on boot.

  • Values are encrypted at rest.
  • Names must match ^[A-Z][A-Z0-9_]*$.
  • Auto-injected variables (like DATABASE_URL from a managed Postgres attachment) cannot be overridden manually. See Environment variables reference.