Skip to content

Commit d554b5b

Browse files
authored
internal: Use Vercel ignoreCommand to skip unnecessary deploys (#3778)
Replace blanket `deploymentEnabled: false` with an ignoreCommand that conditionally builds based on what changed: - master: deploy when website/ or docs/ changed - other branches: deploy only when website/ changed Made-with: Cursor
1 parent 95bf754 commit d554b5b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

website/vercel.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"cleanUrls": true,
3-
"git": {
4-
"deploymentEnabled": false
5-
}
3+
"ignoreCommand": "if [ \"$VERCEL_GIT_COMMIT_REF\" = \"master\" ]; then git diff HEAD^ HEAD --quiet -- . ../docs/; else git diff HEAD^ HEAD --quiet -- .; fi"
64
}

0 commit comments

Comments
 (0)