Skip to content

Commit 400837c

Browse files
authored
internal: Skip Vercel builds on gh-pages* branches (#3807)
gh-pages-bench has no website/ directory — it only exists for GitHub Pages benchmark rendering. The ignoreCommand was erroring out on these branches, causing Vercel to attempt (and fail) preview deployments. Made-with: Cursor
1 parent 9c22178 commit 400837c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"cleanUrls": true,
3-
"ignoreCommand": "if [ \"$VERCEL_GIT_COMMIT_REF\" = \"master\" ]; then git diff HEAD^ HEAD --quiet -- . ../docs/; else git diff HEAD^ HEAD --quiet -- .; fi"
3+
"ignoreCommand": "case \"$VERCEL_GIT_COMMIT_REF\" in gh-pages*) exit 0;; esac; if [ \"$VERCEL_GIT_COMMIT_REF\" = \"master\" ]; then git diff HEAD^ HEAD --quiet -- . ../docs/; else git diff HEAD^ HEAD --quiet -- .; fi"
44
}

0 commit comments

Comments
 (0)