OneBit Deploy
Deploying

Environment variables & secrets

Configure environment variables and secrets for your app, per environment.

Most apps need configuration — API keys, database URLs, feature flags. OneBit Deploy lets you set environment variables and secrets per app from the dashboard.

Setting variables

Open your app and go to the Environment tab. Add variables as key/value pairs. Values you mark as secret are stored securely and not shown in plain text after saving.

Environment variables

When variables apply

  • Variables are injected into your app at runtime.
  • Build-time variables (for example, NEXT_PUBLIC_* for Next.js) are available during the build so they can be inlined into your client bundle.
  • Changing a variable triggers a redeploy so the new value takes effect.

Database URLs

When you provision a managed database, its connection string is available to copy into your app's environment. Treat it as a secret.

Never commit secrets to your repository. Store them as environment variables here so they stay out of your codebase and build logs.

On this page