Skip to main content
Next, you’ll need to set up Trigger.dev for workflow orchestration and background job processing.
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 .env file in the packages/jobs directory and add your Trigger.dev project ID:
Terminal
Replace 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:
Terminal
This will connect your local development environment to Trigger.dev and allow you to run background jobs.
5

Deploy the Trigger.dev jobs

Navigate to the jobs directory and deploy the Trigger.dev jobs:
Terminal
This will build and deploy the Trigger.dev jobs to your Trigger.dev project.

Next Steps

Once you’ve completed the Trigger.dev setup, proceed to Step 4: Partitioner API to set up document partitioning.