Skip to content

chore: disable Vercel preview deployments on PRs#5

Merged
willhou merged 1 commit into
mainfrom
chore/disable-vercel-pr-previews
Jun 14, 2026
Merged

chore: disable Vercel preview deployments on PRs#5
willhou merged 1 commit into
mainfrom
chore/disable-vercel-pr-previews

Conversation

@willhou

@willhou willhou commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Stops Vercel from posting deployment messages on pull requests.

What

Adds git.deploymentEnabled to vercel.json:

"git": { "deploymentEnabled": { "*": false, "main": true } }

Per Vercel's Git Configuration docs, a branch deploys if it matches at least one true rule — so main (matches main: true) still auto-deploys to production, while every other branch matches only *: false and gets no preview deployment.

Why

Preview deploys on PRs were generating Vercel bot comments — including the fork "a team member needs to authorize this deployment" prompt seen on #2 and #3. Disabling preview deploys removes that noise while:

  • keeping production deploys on merge to main, and
  • leaving Git Fork Protection on (this project has secrets in env vars, so fork PRs should not build).

Note

This PR may still get one Vercel comment, because Vercel reads the production (main) config to decide whether to deploy a PR — the new setting only takes effect for PRs opened after this merges.

🤖 Generated with Claude Code

Set git.deploymentEnabled so only `main` auto-deploys. Preview deployments
no longer run on pull requests, which stops the Vercel bot comments (including
the fork "authorize this deployment" prompt) while keeping production deploys
on merge to main and leaving Git Fork Protection intact.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
admob-mcp Ready Ready Preview, Comment Jun 14, 2026 6:07pm

@willhou willhou merged commit 04530c7 into main Jun 14, 2026
4 checks passed
@willhou willhou deleted the chore/disable-vercel-pr-previews branch June 14, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant