Accessing Configuration
Configure your deployments by visiting: Your App > Environments > Config The configuration page is divided into several sections:General Settings
Build Settings
Build Command Examples
Serverless Settings
Serverless settings only apply to API functions. Learn more about Writing API.
Headers Configuration
Redirects Configuration
Environment Variables
Environment variables are injected during build time and are also available at runtime for serverless functions.Adding Variables
1
Navigate to Config
Go to Your App > Environments > Config
2
Scroll to Environment Variables
Find the Environment Variables section
3
Add Variable
Click Add Variable and enter key-value pairs
Variable Obfuscation
Variables matching this pattern are automatically obfuscated in logs:DATABASE_PASSWORDAPI_SECRETSTRIPE_SECRET_KEYJWT_SIGNING_KEY
System Variables
Stormkit automatically injects several system variables. See System Variables for the complete list.Variable Precedence
When deploying manually via UI, you can override environment configuration variables for a single deployment. The precedence is:- Manual deployment overrides (highest)
- Environment configuration variables
- System variables (lowest)
API Keys
Generate API keys to interact with the Stormkit API and programmatically modify environments.1
Navigate to Config
Go to Your App > Environments > Config
2
Find API Keys Section
Scroll to the API Keys section
3
Generate Key
Click Generate API Key and store it securely
Monorepo Configuration
For monorepo setups, use the Build root setting to specify the package directory:web-app:
- Build root:
packages/web-app - Build command:
pnpm build - Output folder:
dist
Advanced Configuration
Custom Package Manager
Stormkit auto-detects package managers based on lock files:package-lock.json→ npmyarn.lock→ yarnpnpm-lock.yaml→ pnpmbun.lockb→ bun
- Install command:
make installor any custom script
Runtime Version
Specify runtime versions using.node-version, .go-version, or mise.toml: