Deployment uses Environments & Endpoints to connect your Jobs to the Trigger.dev platform.
First time deploying to a new Environment
The first time you deploy to a new environment you will need to setup the endpoint for that environment.
First time setup
This only needs to be done once for each environment
Subsequent deployments (i.e. refreshing your Endpoint)
If you add new Jobs, change the id of a Job, or change the Triggers of a Job then you will need to refresh your Endpoint.
There are two ways to do this: