Skip to content

Commit 0a24920

Browse files
tianzhouclaude
andcommitted
fix: only allow deploy hook triggered builds via ignoreCommand
Skip auto-deploy on push while allowing deploy hook triggered builds by checking VERCEL_DEPLOY_HOOK_NAME environment variable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e35c022 commit 0a24920

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vercel.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
{
2+
"ignoreCommand": "if [ -n \"$VERCEL_DEPLOY_HOOK_NAME\" ]; then exit 1; else exit 0; fi"
23
}

0 commit comments

Comments
 (0)