Skip to content

Framework Setup Guides

Step-by-step setup for popular frameworks and runtimes.

Supported Frameworks

FrameworkGuide
Next.js (App + Pages Router)Next.js guide
RemixRemix guide
Node.jsNode.js guide
BunBun guide
SvelteKitSvelteKit community guide

Common Setup Pattern

All frameworks follow the same basic setup:

1. Initialize

bash
npx trigger.dev@latest init

2. Start Dev Server

bash
npx trigger.dev@latest dev

3. Set Environment Variable

bash
TRIGGER_SECRET_KEY=your-dev-secret-key

4. Deploy

bash
npx trigger.dev@latest deploy

Key Concepts

  • Tasks live in the /trigger directory (or wherever you configure dirs in trigger.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

Built from official Trigger.dev documentation