The first time you deploy to a new environment you will need to setup the endpoint for that environment.
Client
is how we know which environment to run your code against:
TRIGGER_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.
path
option for the adaptor you’re using. For
Next.js, this would usually be https://yourdomain.com/api/trigger
.