Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions scripts/vercel-ignore.mjs
Original file line number Diff line number Diff line change
@@ -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);
7 changes: 3 additions & 4 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading