Skip to content

Open source CapCut alternative.

TypeScript

fix(site): the ignored build step compares against the last deployment

David Lee83719e396e4
diff --git a/site/vercel.json b/site/vercel.json
index ea341db8..32a22587 100644
--- a/site/vercel.json
+++ b/site/vercel.json
@@ -1,5 +1,5 @@
{
- "ignoreCommand": "git diff HEAD^ HEAD --quiet -- .",
+ "ignoreCommand": "[ -n \"$VERCEL_GIT_PREVIOUS_SHA\" ] && git cat-file -e \"$VERCEL_GIT_PREVIOUS_SHA^{commit}\" && git diff --quiet \"$VERCEL_GIT_PREVIOUS_SHA\" HEAD -- .",
"crons": [
{ "path": "/api/chatgpt/gc", "schedule": "15 4 * * *" },
{ "path": "/api/credits/expire", "schedule": "30 0 * * *" },