Setting variables
You can set environment variables through the Dashboard — navigate to your app’s Settings > Environment tab.Variable types
| Type | Description | Example |
|---|---|---|
| Plain text | Standard configuration values | NODE_ENV=production |
| Secret | Sensitive values, masked in UI | API_KEY=sk-... |
| Database | Auto-injected from provisioned databases | DATABASE_URL=postgresql://... |
Variable scope
- App-level — available to all deployments of an application
- Environment-level — override values per environment (production, staging, preview)
Best practices
- Never commit secrets to your repository — use OwnKube environment variables instead
- Use environment-level overrides for different configurations between staging and production
- Database connection strings are auto-injected when you provision a database through OwnKube