trigger-config
Configure Trigger.dev projects with build extensions for databases, browsers, media processing, and Python.
- Supports seven core build extensions: Prisma, Playwright, Puppeteer, FFmpeg, Python, apt-get system packages, and additional files
- Includes environment variable syncing, global lifecycle hooks (onStartAttempt, onSuccess, onFailure), and machine configuration for deployment
- Extensions apply only to production builds; local development uses your native environment
- Common patterns provided for full-stack web apps, AI/ML processing, and web scraping workflows
Trigger.dev Configuration
Configure your Trigger.dev project with trigger.config.ts and build extensions.
When to Use
- Setting up a new Trigger.dev project
- Adding database support (Prisma, TypeORM)
- Configuring browser automation (Playwright, Puppeteer)
- Adding media processing (FFmpeg)
- Running Python scripts from tasks
- Syncing environment variables
- Installing system packages
Basic Configuration
// trigger.config.ts
import { defineConfig } from "@trigger.dev/sdk";
More from triggerdotdev/skills
trigger-tasks
Build AI agents, workflows and durable background tasks with Trigger.dev. Use when creating tasks, triggering jobs, handling retries, scheduling cron jobs, or implementing queues and concurrency control.
1.6Ktrigger-agents
AI agent patterns with Trigger.dev - orchestration, parallelization, routing, evaluator-optimizer, and human-in-the-loop. Use when building LLM-powered tasks that need parallel workers, approval gates, tool calling, or multi-step agent workflows.
1.4Ktrigger-setup
Set up Trigger.dev in your project. Use when adding Trigger.dev for the first time, creating trigger.config.ts, or initializing the trigger directory.
1.4Ktrigger-realtime
Subscribe to Trigger.dev task runs in real-time from frontend and backend. Use when building progress indicators, live dashboards, streaming AI/LLM responses, or React components that display task status.
1.4Ktrigger-cost-savings
Analyze Trigger.dev tasks, schedules, and runs for cost optimization opportunities. Use when asked to reduce spend, optimize costs, audit usage, right-size machines, or review task efficiency. Requires Trigger.dev MCP tools for run analysis.
942tasks
Build AI agents, workflows and durable background tasks with Trigger.dev. Use when creating tasks, triggering jobs, handling retries, scheduling cron jobs, or implementing queues and concurrency control.
3