Self-Hosted Trigger.dev Task Spike
Overview
A minimal Trigger.dev v3 project used to author sample tasks and validate the self-hosted deploy path (npx trigger.dev deploy --self-hosted --push). It is a small spike that confirms the end-to-end task-definition and deployment loop against the self-hosted cluster.
Why It Exists
Before relying on the self-hosted Trigger.dev install for real workloads, the team needed a sandbox to write tasks, run them, and prove deployment against a privately hosted instance. This repo is that sandbox.
What We Built
A trigger.config.ts plus src/trigger/ task files (example.ts, stuff.ts) and a .trigger working directory. The README documents the self-hosted deployment command. It is intentionally tiny, a focused harness for exercising the Trigger.dev SDK and the push-based self-hosted deploy.
Technologies & Approach
Trigger.dev v3 with TypeScript task definitions, configured through trigger.config.ts and deployed with the --self-hosted --push CLI flow so jobs run on the studio’s own cluster rather than the hosted cloud.
Outcome / Impact
Validated the task-authoring and self-hosted deployment workflow that the larger Trigger.dev infrastructure work depends on. A small but useful R&D step that de-risked the self-hosting effort.
Capabilities Demonstrated
- Authoring Trigger.dev tasks in TypeScript
- Deploying to a self-hosted Trigger.dev instance via CLI
- Rapid background-job building and validation