Create isolated environments for each branch of your code, allowing you to test changes before merging to production. You can create preview branches manually or automatically from your git branches.
TRIGGER_SECRET_KEY
) and the branch name (TRIGGER_PREVIEW_BRANCH
).Plan | Active preview branches |
---|---|
Free | 0 |
Hobby | 5 |
Pro | 20 (then paid for more) |
TRIGGER_PREVIEW_BRANCH
environment variable as well as the TRIGGER_SECRET_KEY
environment variable.
When deploying to somewhere that supports process.env
(like Node.js runtimes) you can just set the environment variables:
process.env
(like some edge runtimes) you can manually configure the SDK:
TRIGGER_ACCESS_TOKEN
: A Trigger.dev personal access token (they start with tr_pat_
). Learn how to create one and set it in GitHub.--env preview
at the end. We automatically detect the preview branch from the GitHub actions env var.
You can manually specify the branch using --branch <branch-name>
in the deploy command, but this isn’t required.
--branch <branch-name>
.
VERCEL_ACCESS_TOKEN
, VERCEL_PROJECT_ID
and VERCEL_TEAM_ID
environment variables. You can find these in the Vercel dashboard. Full instructions are in the syncVercelEnvVars() documentation.
The extension will automatically detect a preview branch deploy from Vercel and sync the appropriate environment variables.