Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit 66bd4b7

Browse files
committed
feat(vercel): add vercel config for only deploying gh-pages branch on default
1 parent 397c076 commit 66bd4b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vercel.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"env": {
3+
"BRANCH": "gh-pages"
4+
},
5+
"scripts": {
6+
"vercel-deploy": "if [ \"$BRANCH\" != \"main\" ]; then echo \"Cannot deploy from $BRANCH branch\"; exit 1; fi"
7+
}
8+
}

0 commit comments

Comments
 (0)