Setting Up Trigger.dev Integration
This guide walks you through setting up the Trigger.dev integration in yourzopio
application.
Prerequisites
Before you begin, make sure you have:- A Trigger.dev account (sign up at trigger.dev)
- Access to your
zopio
application codebase
Installation
The@repo/trigger
package is already included in the zopio
monorepo. If you’re working with a new package that needs to use Trigger.dev, add it as a dependency:
Environment Variables
Add the following environment variables to your.env
file:
Verifying Installation
To verify that the Trigger.dev integration is working correctly:- Make sure your application is running
- Send a test event using the API endpoint
- Check the Trigger.dev dashboard to see if the event was received
Webhook Configuration
For production environments, you’ll need to configure the Trigger.dev webhook to point to your API endpoint:- Go to the Trigger.dev dashboard
- Navigate to Project Settings > Webhooks
- Add a new webhook with the URL:
https://your-domain.com/trigger
Troubleshooting
If you encounter issues with the setup:- Verify that your API key is correct
- Check that the API endpoint is accessible
- Review the server logs for any error messages
- Ensure that the Trigger.dev client is properly initialized