Configuration
Configure Runners in Nitro applications
Complete configuration options for the Runners Nitro module.
Basic Configuration
Configuration Options
pattern
File patterns to scan for runners. Defaults to ["src/**/*.ts", "runners/**/*.ts"].
region
Region identifier for runner context. Can be set via environment variable.
Environment Variables
| Variable | Description | Default |
|---|---|---|
RUNNER_REGION | Region identifier | "us-east-1" |
DEBUG | Enable debug logging | false |
RUNNERS_DEBUG | Enable runner debug logging | false |
Build Configuration
The module automatically:
- Extracts schemas at build time
- Bundles runners for optimal performance
- Creates virtual handlers for API routes
Custom Build Directory
Development Mode
In development, the module:
- Watches for runner file changes
- Rebuilds incrementally
- Externalizes runner bundles to prevent reloads
Production Mode
In production, the module:
- Performs one-time build
- Optimizes bundles
- Pre-extracts schemas
Next Steps
- Learn about Deployment
- Check Quickstart for setup guide