There was an error while loading. Please reload this page.
git fetch
1 parent 75fb993 commit d4bf2b1Copy full SHA for d4bf2b1
1 file changed
web/scripts/vercel-ignore.sh
@@ -3,7 +3,11 @@
3
# Skips the build when neither web/ nor common/ changed since the previous deployed commit.
4
# Kept in a script (rather than inline in vercel.json) because `ignoreCommand` is capped at 256 chars.
5
6
-git fetch origin --unshallow || git fetch origin --deepen=200 || true
+# Vercel's build container has no fetchable `origin`, so both of these always fail there and the
7
+# script falls through to building — the safe direction. Kept for local and other-CI runs where the
8
+# history *is* fetchable. stderr is dropped so two `fatal:` lines do not make a healthy deploy look
9
+# like a broken one.
10
+git fetch origin --unshallow 2>/dev/null || git fetch origin --deepen=200 2>/dev/null || true
11
12
echo "prev=$VERCEL_GIT_PREVIOUS_SHA cur=$VERCEL_GIT_COMMIT_SHA"
13
0 commit comments