Framework Setup Guides
Step-by-step setup for popular frameworks and runtimes.
Supported Frameworks
| Framework | Guide |
|---|---|
| Next.js (App + Pages Router) | Next.js guide |
| Remix | Remix guide |
| Node.js | Node.js guide |
| Bun | Bun guide |
| SvelteKit | SvelteKit community guide |
Common Setup Pattern
All frameworks follow the same basic setup:
1. Initialize
bash
npx trigger.dev@latest init2. Start Dev Server
bash
npx trigger.dev@latest dev3. Set Environment Variable
bash
TRIGGER_SECRET_KEY=your-dev-secret-key4. Deploy
bash
npx trigger.dev@latest deployKey Concepts
- Tasks live in the
/triggerdirectory (or wherever you configuredirsintrigger.config.ts) - The dev server runs alongside your framework's dev server
- Tasks are isolated from your main app and run in separate containers
- Environment variables for tasks must be set in the Trigger.dev dashboard (not your app's
.env)
See Also
- Quick Start — fastest path to your first task
- trigger.config.ts Reference — full configuration options
- Deployment — CI/CD and GitHub Actions