Skip to main content

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:
Examples of obfuscated variables:
  • DATABASE_PASSWORD
  • API_SECRET
  • STRIPE_SECRET_KEY
  • JWT_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:
  1. Manual deployment overrides (highest)
  2. Environment configuration variables
  3. 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
API keys grant full access to the environment. Store them securely and never commit them to version control.

Monorepo Configuration

For monorepo setups, use the Build root setting to specify the package directory:
Configuration for 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 → npm
  • yarn.lock → yarn
  • pnpm-lock.yaml → pnpm
  • bun.lockb → bun
To use a custom install command:
  • Install command: make install or any custom script

Runtime Version

Specify runtime versions using .node-version, .go-version, or mise.toml:
See Application Runtime for more details.