How do I set environment variables and secrets?

Every service reads its configuration from environment variables — API keys, database URLs, feature flags, and anything else you don't want hard-coded.

Set them

Open your service in the console and use its environment variables editor to add each key and value. Save, and Forte redeploys the service so the new values take effect. Websites work the same way.

Notes

  • Values are stored securely and injected into your running container. Your app reads them the normal way — process.env, os.environ, System.getenv, and so on.
  • Treat every value as a secret; there's no separate "public vs. secret" split you need to configure.
  • Values your app needs while it builds are configured on the service too, so a build that depends on a token still gets it.

For the deployment flow around this, see Deploying Services.

Related questions

Still need help?

If this didn't answer your question, our team is one message away.

Contact support