From 7a11ce2de5a557707e7fa84d362847fac78d90d6 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 20 Oct 2026 09:06:17 +0000 Subject: [PATCH] Stop Vercel from building the spec-drift-status branch Vercel reads vercel.json from the commit it deploys, so the deploymentEnabled setting on main never reached the status branch, which holds only spec-drift.json. Every status commit started a preview build that failed ("npm run vercel-build" exited with 1). The watch now writes a vercel.json that turns deployments off into the status branch with each publish, and main's vercel.json, whose only setting had no effect, is removed. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VeACDNmxsBifFG4eSqRsUi --- .github/workflows/spec-drift-watch.yml | 6 +++++- vercel.json | 8 -------- 2 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 vercel.json diff --git a/.github/workflows/spec-drift-watch.yml b/.github/workflows/spec-drift-watch.yml index 5f2ddc7..be0ac9c 100644 --- a/.github/workflows/spec-drift-watch.yml +++ b/.github/workflows/spec-drift-watch.yml @@ -106,7 +106,11 @@ jobs: git worktree add --orphan -b "$STATUS_BRANCH" "$dir" fi cp "$RUNNER_TEMP/status-out.json" "$dir/spec-drift.json" - git -C "$dir" add spec-drift.json + # Vercel reads vercel.json from the commit it deploys, so main's + # setting never reaches this branch; without this file every status + # commit starts a preview build that fails (the branch has no app). + printf '%s\n' '{ "git": { "deploymentEnabled": false } }' > "$dir/vercel.json" + git -C "$dir" add spec-drift.json vercel.json if git -C "$dir" diff --cached --quiet; then echo "status unchanged" exit 0 diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 9a03e48..0000000 --- a/vercel.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "https://openapi.vercel.sh/vercel.json", - "git": { - "deploymentEnabled": { - "spec-drift-status": false - } - } -}