From 6ec1539aedac2eae356abdc7eb396889dd6a0152 Mon Sep 17 00:00:00 2001 From: Joseph Dale Banares Date: Sat, 3 Oct 2026 23:35:01 +0800 Subject: [PATCH] docs(site): build when the last deploy's commit is missing from the shallow clone --- site/vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/vercel.json b/site/vercel.json index 1502b1e..cc02795 100644 --- a/site/vercel.json +++ b/site/vercel.json @@ -3,5 +3,5 @@ "framework": "nextjs", "installCommand": "cd .. && bun install --frozen-lockfile", "buildCommand": "cd .. && bun run --filter @stackmap/viewer build && cd site && bun run build", - "ignoreCommand": "[ -n \"$VERCEL_GIT_PREVIOUS_SHA\" ] && git diff --quiet \"$VERCEL_GIT_PREVIOUS_SHA\" HEAD -- . ../packages ../package.json ../tsconfig.base.json ../bun.lock" + "ignoreCommand": "if [ -n \"$VERCEL_GIT_PREVIOUS_SHA\" ] && git cat-file -e \"$VERCEL_GIT_PREVIOUS_SHA^{commit}\" 2>/dev/null && git diff --quiet \"$VERCEL_GIT_PREVIOUS_SHA\" HEAD -- . ../packages ../package.json ../tsconfig.base.json ../bun.lock; then exit 0; else exit 1; fi" }