1. Make sure your Client is configured correctly
The API Key you use for yourClient
is how we know which environment to run your code against:
2. Set your environment variables on your server
Ensure that yourTRIGGER_API_KEY
(or whatever you’ve set it to) environment variable is set on your server, to the correct value from the “Environments & API Keys” page in your Trigger.dev dashboard.

3. Deploy your code as usual
Your Job code lives in your codebase, so you can deploy it as you normally would.4. Connect the Endpoint for the first time
-
Go to the “Environments & API Keys” page in your Trigger.dev dashboard
-
Click the “Configure” button on the relevant endpoint
-
Enter the URL of your Trigger.dev endpoint
This is the value of the
path
option for the adaptor you’re using. For Next.js, this would usually behttps://yourdomain.com/api/trigger
. -
Click “Save”. This will automatically connect, test your endpoint, and register all your Jobs.