Integrate with Trigger.dev for background jobs and event-driven workflows
@repo/trigger
package provides a seamless integration with Trigger.dev, a powerful platform for running background jobs and event-driven workflows in your Next.js application.
zopio
monorepo and is available to all applications in the workspace.
Variable | Description | Required |
---|---|---|
TRIGGER_API_KEY | Your Trigger.dev API key | Yes |
TRIGGER_API_URL | The Trigger.dev API URL | No (defaults to “https://api.trigger.dev”) |
app/trigger/route.ts
that processes incoming webhook requests:
sendEvent
function includes built-in error handling:
TRIGGER_API_KEY
environment variable: