From bbafc964c541193de581b2af4be8b3d18d15ffa4 Mon Sep 17 00:00:00 2001 From: GEM CYBERSECURITY-MONITORING ASSIST Date: Mon, 6 Jul 2026 04:01:41 +0100 Subject: [PATCH 1/2] fix(vercel): ignore builds from duplicate projects --- scripts/vercel-ignore.mjs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/vercel-ignore.mjs diff --git a/scripts/vercel-ignore.mjs b/scripts/vercel-ignore.mjs new file mode 100644 index 00000000..c42ca396 --- /dev/null +++ b/scripts/vercel-ignore.mjs @@ -0,0 +1,15 @@ +const canonicalProjectId = "prj_VDGqnA7wZt2E65LLvT94ZOpnYc2Z"; +const currentProjectId = process.env.VERCEL_PROJECT_ID?.trim(); + +if (!currentProjectId) { + console.log("VERCEL_PROJECT_ID is unavailable; continue the build safely."); + process.exit(1); +} + +if (currentProjectId === canonicalProjectId) { + console.log(`Canonical Vercel project ${canonicalProjectId}; continue the build.`); + process.exit(1); +} + +console.log(`Ignoring duplicate Vercel project ${currentProjectId}; canonical project is ${canonicalProjectId}.`); +process.exit(0); From 448892837a317b47ca540fa8a17fc188863ea99a Mon Sep 17 00:00:00 2001 From: GEM CYBERSECURITY-MONITORING ASSIST Date: Mon, 6 Jul 2026 04:02:35 +0100 Subject: [PATCH 2/2] chore(vercel): configure canonical project builds --- vercel.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vercel.json b/vercel.json index 0f1d2f9c..555c06d0 100644 --- a/vercel.json +++ b/vercel.json @@ -1,12 +1,11 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "framework": "nextjs", - "buildCommand": "pnpm run db:generate && pnpm run build", + "ignoreCommand": "node scripts/vercel-ignore.mjs", + "buildCommand": "pnpm run build", "devCommand": "pnpm dev", "installCommand": "pnpm install --frozen-lockfile", - "regions": [ - "sfo1" - ], + "regions": ["sfo1"], "git": { "deploymentEnabled": { "main": true