CI: Vercel runs a Preview deploy on every PR, even with no docs changes
@dcbuild3r is already working on this.
Since Jun 26, 2026.
Assessment
This issue has not been assessed yet.
Description
Summary
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. - A root
.vercelignorecannot gate this; with the project Root Directory set todocs/, it either no-ops or breaks the docs build. (Confirmed in #462.)
Requested fix (needs Vercel dashboard access)
Project → Settings → Git → Ignored Build Step → "Run my command":
git diff --quiet HEAD^ HEAD -- docs
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. - PRs that touch
docs/, andmain: deploy as today.
- Dominant language
- Noir
- Stars
- 138
- Forks
- 47
- Avg merge
- 1d 34m
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from worldfnd/provekit
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100