Vercel
A preview deployment finishes and the link lands in a pull request. With Vercel connected, that deploy can start an automation: actors open the preview, run your checklists and report back while the change is still in review.
What it does
- Deployment triggers. Automations start when a deployment is created, succeeds, fails, is canceled, becomes ready or is promoted to production.
- Deployment context. Actors get the deployment's status and metadata, so they test the build that just shipped.
- Per-project links. Each Stunt Double project links its own Vercel project.
- Always the newest build. A checklist or interview on a linked project can run against the latest preview or production deployment instead of a fixed URL.
- Protected previews. Actors get past Vercel Authentication and password protection with the project's Protection Bypass for Automation, so a protected preview can be checked before it is promoted.
Before you start
- Role. Any member can connect their own Vercel account. Turning Vercel on for the workspace takes an owner or admin.
- Plan. Installing the integration is free. Runs it starts count toward your Stunt Double plan as usual.
- Vercel access. You need permission to add integrations to the Vercel team or personal account that owns your projects. Personal (Hobby) accounts work the same way as teams.
Set it up
There are two ways in. Both end with the same per-project link.
From Stunt Double
- In app.stuntdouble.io, open Integrations from the sidebar and click Vercel.
- On Your account, click Connect Vercel. Vercel opens and asks which team and projects to install the integration on. Approve it.
- On the step named after your workspace, an owner or admin turns the switch on. It reads On for this workspace.
- On Projects, click Choose for a project and pick a project. Its Settings open on the Integrations tab: choose the project's Vercel project there.
From the Vercel Marketplace
- Find Stunt Double in the Vercel Marketplace and install it on your Vercel team.
- Open Vercel under Integrations. Choosing Configure on the install in Vercel lands there too. Your account reads Installed from the Vercel Marketplace, and the workspace step reads On for everyone in this workspace. Nobody needs to connect their own account.
- On Projects, click Choose for a project and pick the Vercel project for each Stunt Double project.
Deployment trigger reference
Choose Vercel as the trigger when you create an automation (it shows as Vercel Event on the automation afterwards). The Configure step sets when it fires:
- Events, one or more of: Deployment Created, Deployment Succeeded, Deployment Error, Deployment Canceled, Deployment Ready and Deployment Promoted.
- Deployment Environment: Any environment, Production only or Preview only.
- Project Filter (optional): one Vercel project. Leave it empty to trigger for all of them.
Deployment Succeeded fires once the build completes and checks pass, which is the usual choice for testing previews. On each Run Checklist step, tick Use Vercel deployment URL to run it against the deployment that started the automation rather than the checklist's usual address. To post the results on the pull request the preview came from, add a GitHub Comment step (see GitHub). Automate multi-step workflows builds a full automation step by step.
Run against the latest deployment
Once a project links a Vercel project, a checklist's Settings and an interview's environment offer Run against: A fixed URL, Latest Vercel preview deployment or Latest Vercel production deployment. The newest matching deployment is looked up each time it runs, and the URL you entered is kept as a fallback for when none can be found.
What Stunt Double can access
Vercel sets the integration's permissions, and shows them on the install screen before you approve. Stunt Double uses them to list your projects, read deployment status and metadata, receive deployment events and read each linked project's Protection Bypass for Automation secret. When a project has none, a Marketplace install creates one, labelled Stunt Double automation in Vercel.
The bypass secret is only used to open deployments. Stunt Double leaves it out of the addresses it shows you, in reports, emails and search, and in what actors and assistants read.
Disconnect
Open Integrations, click Vercel, then click Disconnect on Your account. The Disconnect Vercel? dialog lists every workspace that loses Vercel. Confirm, and automations with a Vercel trigger stop firing in those workspaces.
To stop one workspace from using Vercel and leave the rest, an owner or admin turns off the workspace switch instead. A Marketplace install is removed from the integrations page of your Vercel team.
Troubleshooting
The trigger list shows "Set up Vercel". Vercel is not connected for this workspace yet. Choosing the trigger opens the connect dialog.
The workspace step reads "Off. Ask a workspace owner or admin to turn it on." Only owners and admins can flip the switch.
An automation does not start on deploy. Check that the automation is on, that its events and Deployment Environment match the deploy, and that any Project Filter names the right Vercel project. The integration also has to be installed on the Vercel team that owns that project.
Actors land on Vercel's sign-in page. The preview is protected and Stunt Double could not get a bypass secret for it. Only a Marketplace install can create one. Otherwise, copy the secret from the project's Deployment Protection settings in Vercel, open the Stunt Double project's Settings, then Integrations, and click Add secret under the linked Vercel project. It is used only when Stunt Double cannot get one itself, and never shown again. Also check the run uses the deployment URL or the latest deployment, not a fixed URL, since the bypass is only added to those.