Unkey Deploy is currently in private beta. To get access, reach out on
Discord or email
support@unkey.com.
Create variables
- Open your project’s Settings tab.
- Select the environment (production or preview).
- Under Environment variables, click Add variable.
- Enter the key and value.
- Choose the visibility type.
- Save the changes.
.env file.
Visibility types
Each variable has a visibility type that controls whether the value can be read back after saving:| Type | Description |
|---|---|
| Recoverable | The value can be viewed in the dashboard after saving |
| Write-only | The value is hidden after saving and cannot be retrieved from the dashboard |
Environment scoping
Variables are tied to a specific environment. This lets you use different configuration for production and preview without managing separate config files:| Variable | Production | Preview |
|---|---|---|
DATABASE_URL | postgres://prod-db.acme.com/api | postgres://dev-db.acme.com/api |
LOG_LEVEL | warn | debug |
FEATURE_V2_UI | false | true |
Variables and deployments
Deployments are immutable. Variable changes don’t affect running deployments. To apply updated variables, trigger a new deployment. This means you can update variables safely without worrying about side effects on running instances. The new values only take effect when the next deployment starts.Next steps
Environments
How environments isolate configuration and deployments
App settings
Full reference for build, runtime, and variable settings

