1
Create Trigger.dev account and project
In your Trigger.dev account, create a new project. Once created, you’ll need to copy the project ID and secret key.
2
Set up Trigger.dev environment variables
Add the
TRIGGER_SECRET_KEY to your root .env file:.env
3
Set up jobs environment
Create a Replace
.env file in the packages/jobs directory and add your Trigger.dev project ID:Terminal
your_project_id_here with your actual Trigger.dev project ID.4
Start the Trigger.dev development server
Navigate to the jobs directory and start the Trigger.dev development server:This will connect your local development environment to Trigger.dev and allow you to run background jobs.
Terminal
5
Deploy the Trigger.dev jobs
Navigate to the jobs directory and deploy the Trigger.dev jobs:This will build and deploy the Trigger.dev jobs to your Trigger.dev project.
Terminal