Vercel

Build a preview of each delivered pull request on your own Vercel project, and open it from the Brief's Review tab.

Overview

The Vercel connection lets reviewers try a delivered change in the browser before they merge it. When a Delivery to a repository with previews on finishes successfully, Hamster asks your Vercel project to build the delivered commit as a preview deployment. The Preview chip in the Brief's Review header opens it.

The builds run on your team's own Vercel account and use its Vercel plan. Hamster requests the build, shows its status, and links to it. Hamster doesn't create Vercel projects, and the preview opens on Vercel in a new tab.

Previews work for repositories connected through GitHub, GitLab, or Bitbucket. Cursor Origin repositories don't get previews, and their Review header has no Preview chip.

The connection also lets Hamster use Vercel in chat, to look up projects, deployments, and build logs, and to make changes to projects and deployments.

How It Works

  1. Connect Vercel with Install for team.
  2. Turn previews on for each repository you want previewed.
  3. Deliver a Brief to one of those repositories. When the delivery finishes successfully, Hamster requests a preview of the delivered commit. The delivery thread shows Building preview while Vercel builds, then Preview ready with an Open preview link, or Preview failed with the error.
  4. In the Brief's Review tab, click the Preview chip to open the preview. The chip updates on its own while Vercel builds.

Deliveries by Hamster Cloud, Cursor Agents, OpenAI Agents, and Claude Agents request a preview automatically when they finish successfully. A Cursor Agents delivery to a GitLab or Bitbucket repository doesn't request one on its own, and neither does a Hamster Local delivery. For those, and for a pull request you linked by hand, click Create preview in Review.

If Vercel already built a deployment of the delivered commit, for example from its own Git integration, Hamster uses that deployment instead of starting a second build. If that deployment is already finished, the thread goes straight to Preview ready.

A successful delivery doesn't mean the preview is ready, because Vercel builds it separately. If a preview fails before its build starts, the delivery thread shows nothing, so check the Preview chip in Review.

Hamster doesn't build later commits on its own. When the pull request has newer commits than the preview, the Preview details say This PR has newer commits, and Update preview builds the pull request's latest commit.

How to Connect

Connecting Vercel for the team, and turning previews on, needs the Creator role or higher. Before you turn previews on for a repository:

  • Connect the repository to Hamster through GitHub, GitLab, or Bitbucket, and keep it enabled.
  • Create a Vercel project for the repository and connect it to the repository in the project's Git settings on Vercel.
  • Deploy the project to production once on Vercel. Hamster doesn't create the project or run its first production deployment.

Then:

  1. Go to Knowledge > Connections in your workspace, click the Vercel card, and choose Install for team. Previews only work with a team installation.
  2. On Vercel's screen, approve the access Hamster asks for.

Configure Previews

  1. On the team's Vercel card, click Configure previews. You can also click the card itself, or right-click it and choose Configure previews.
  2. The Vercel previews dialog opens. Its Enable previews note says that after each delivery, Vercel deploys the changes to a preview URL you can open, that you create the preview for a pull request you link yourself in the Brief's Review tab, and that this uses your Vercel plan.
  3. The dialog lists each connected repository that has a Vercel project connected to it. Each row shows the project and where it lives, such as web · Acme for a Vercel team or web · Personal for a personal Vercel account. If several projects match a repository, Hamster picks one for you and shows Change so you can pick another.
  4. Turn on the switch for each repository you want previewed. Each switch saves as soon as you flip it, and Hamster confirms with a message such as "Previews are on for acme/web." Turning a switch on is your agreement that Vercel builds previews for that repository on your Vercel plan.
  5. Click Done.

A repository stays off until someone turns it on. To pause previews, turn its switch off. Hamster keeps the setup, so you can turn it back on later.

You can't turn a repository on until its project has a ready production deployment. Until then, the row says the project "needs its first production deployment" and offers Check again and Open in Vercel. Deploy to production on Vercel, then click Check again. If none of your connected repositories has a Vercel project, the dialog offers Create project in Vercel and Check again.

Hamster lists projects from the connected personal Vercel account and up to 10 of its teams. If there are more teams, the dialog says "Showing projects from your first 10 Vercel teams."

If a repository's previews are set up on another Vercel connection, the row says so. When this connection has no project for that repository, the row has no switch, so manage it from the other connection. When it has one, the row warns that turning the switch on moves the repository's previews to this connection.

If a project was disconnected from its repository on Vercel, the row says the repository "is no longer linked to a Vercel project". Connect them again in the project's Git settings on Vercel and click Check again. If another project still matches, the row asks you to choose one.

Once Hamster has started builds, the dialog shows a usage line such as "Last 30 days: 12 preview builds, 41 build min". It counts only builds Hamster started, not deployments Hamster reused from Vercel.

Previews in Review

The Preview chip sits in the Review header beside the pull request's state pill. When the preview is ready, click the chip to open it on Vercel in a new tab, or click the caret for the details: the status, the commit and branch it built, the build minutes when Hamster started the build, a button to copy the deployment URL, and Open preview. Until the preview is ready, click the chip itself for the details. While Vercel builds, the details update on their own.

The details offer the one action that applies:

  • Create preview: The pull request has no preview yet, such as one you linked by hand or delivered with Hamster Local.
  • Update preview: The pull request has newer commits than the preview. It builds the latest commit.
  • Retry preview: The preview failed.
  • Request new preview: The preview stopped before it was ready.
  • Configure Vercel: Previews aren't set up for the repository, or are turned off. It opens Connections.

Anyone on the team can see and open a preview. Creating, updating, retrying, or requesting a new preview needs the Creator role or higher. Reviewers see the status without those buttons, so they ask a Creator, Admin, or Owner to build the preview.

Vercel's Deployment Protection controls who can open a project's preview URLs, and it applies to the link Hamster shows. If the project is protected, people need access on Vercel to open the preview.

If a Preview Fails

The delivery thread shows Preview failed with the error. In Review, the Preview details say Preview build failed and name the cause in plain words. The full error sits under Details.

  • "Vercel couldn't build this commit." Check the build logs in Vercel, push a fix if the build needs one, then click Retry preview. It builds the pull request's latest commit.
  • "Hamster couldn't start a Vercel build for this commit." Click Retry preview to start a new build.
  • "The Vercel setup for this repository changed." Check the repository's row in Configure previews: its switch is on, and its project is still connected to the repository on Vercel and has a ready production deployment. Then click Retry preview. The Configure Vercel link beside the message opens Connections.
  • "Vercel didn't finish building this commit in time." Click Retry preview to check on the build again.

If the details say Preview unavailable, the preview stopped before it was ready, for example because the pull request was unlinked from the Brief or Vercel was disconnected while it was building. Click Request new preview. If Vercel was disconnected, connect it again and turn the repository back on in Configure previews first.

The Preview details can also show a notice to people who can request previews:

  • "The Vercel connection for this repository is no longer active. Reconnect it to request previews." Disconnect the team's Vercel connection, connect it again with Install for team, and turn the repository back on in Configure previews. Then request the preview again.
  • "Vercel may still be starting a build for this commit. Check back in a few minutes to retry it." Wait a few minutes, then click Retry preview.

If a delivery finished but its thread shows no preview, check that:

  • Vercel is connected for the team, and the repository's switch is on in Configure previews.
  • The delivery finished successfully.
  • For a Hamster Local delivery, or a Cursor Agents delivery to GitLab or Bitbucket, click Create preview in Review.
  • The preview didn't fail before its build started. That failure shows nothing in the thread, so open the Preview chip in Review for the reason.

If a repository is missing from the Vercel previews dialog, check that:

  • The Vercel project is connected to that repository in its Git settings on Vercel.
  • The repository is connected and enabled in Hamster through GitHub, GitLab, or Bitbucket.
  • The project is in the connected personal Vercel account or one of the 10 teams Hamster lists.
  • The dialog doesn't say "Vercel access revoked". If it does, disconnect the team's Vercel connection, connect it again with Install for team, and open the dialog again.

Disconnecting

Disconnecting the team's Vercel connection needs the Creator role or higher. Hover the Vercel card and click the x, or right-click it and choose Disconnect, then confirm with Delete.

Hamster removes the preview setup for every repository on that connection. Previews that were ready still open from Review. Previews still building become unavailable. Hamster deletes nothing on Vercel.

  • Reviewing Briefs — Where the Preview chip appears.
  • Delivering Briefs — Deliveries whose pull requests get previews.
  • GitHub — Connect the GitHub repositories Vercel builds previews for.
  • GitLab — Connect the GitLab repositories Vercel builds previews for.
  • Bitbucket — Connect the Bitbucket repositories Vercel builds previews for.
  • Roles and Permissions — Who can configure previews and request builds.
  • Connections Overview — Install, reconnect, and remove connections.