You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Vercel GitHub App (docs-provekit-org) creates a Preview deployment on every PR and push, regardless of whether anything under docs/ changed. For PRs that do not touch the docs site (the majority — most PRs are Rust/Go changes), this builds the docs site unnecessarily and adds a Vercel status check plus a sticky Vercel comment to the PR.
I investigated whether this could be controlled from the repo in #462 (now closed) — it cannot (see root cause).
Root cause
"Deploy on every PR" is controlled by the Vercel project Git settings, not the repo. Repo-side fixes do not work:
GitHub Actions paths: filters only gate GitHub Actions workflows — the Vercel GitHub App still receives every webhook.
Semantics: exit 0 (no docs/ change) → Vercel skips the build; exit 1 (docs/ changed) → Vercel builds. The path is relative to the repo root; if the project Root Directory is docs/, use . instead of docs.
Alternative
If per-PR docs previews are not needed, disable Preview Deployments for non-production branches under the same Git settings, keeping only main → Production.
Expected outcome
PRs that do not touch docs/: no Vercel build, status check, or comment.
Summary
The Vercel GitHub App (
docs-provekit-org) creates a Preview deployment on every PR and push, regardless of whether anything underdocs/changed. For PRs that do not touch the docs site (the majority — most PRs are Rust/Go changes), this builds the docs site unnecessarily and adds a Vercel status check plus a sticky Vercel comment to the PR.I investigated whether this could be controlled from the repo in #462 (now closed) — it cannot (see root cause).
Root cause
"Deploy on every PR" is controlled by the Vercel project Git settings, not the repo. Repo-side fixes do not work:
paths:filters only gate GitHub Actions workflows — the Vercel GitHub App still receives every webhook..vercelignorecannot gate this; with the project Root Directory set todocs/, it either no-ops or breaks the docs build. (Confirmed in chore: gate Vercel deployments to docs-only changes #462.)Requested fix (needs Vercel dashboard access)
Project → Settings → Git → Ignored Build Step → "Run my command":
Semantics: exit
0(nodocs/change) → Vercel skips the build; exit1(docs/changed) → Vercel builds. The path is relative to the repo root; if the project Root Directory isdocs/, use.instead ofdocs.Alternative
If per-PR docs previews are not needed, disable Preview Deployments for non-production branches under the same Git settings, keeping only
main→ Production.Expected outcome
docs/: no Vercel build, status check, or comment.docs/, andmain: deploy as today.