Createst Docs

Environment Variables

Set configuration values for your app, scoped to the environment they apply to.

Your app's configuration — API keys, settings, and other values it reads at runtime — lives in environment variables. You set them per environment, so Preview, Development, and Production can each have their own.

Set a variable

Open your project's environment-variables settings.
Add a variable with its name and value.
Choose the scope — which environment(s) it applies to.
Save. Your app picks up the value on its next deploy.

What to expect

Variables are stored securely and made available to your app at runtime in the environment you scoped them to. Update or remove them any time; redeploy for changes to take effect.

Repository defaults

You can set default environment variables for a repository so every new project you create from it starts with a copy — no need to re-enter the same variables each time.

Open Settings → Repositories.
Select Add repository, choose the provider — GitHub or Forgejo — and pick the repository.
Add the default variables and choose each one's scope, the same way you do for a project.

Repository defaults apply to both your GitHub repositories and the Forgejo repositories that come with your Createst projects. In a team context you manage the team's repository defaults; personally you manage your own.

A new project created from a repository is seeded with a copy of that repository's defaults at the moment it's created. Changing a repository's defaults later does not change projects that already exist — update those projects directly.

On this page