From a400486a382d79d138f2788f7c2115654dba893b Mon Sep 17 00:00:00 2001 From: Trevor Walker Date: Fri, 18 Sep 2026 16:49:37 -0600 Subject: [PATCH] chore(marketing): skip Vercel builds that do not touch the site --- apps/marketing/vercel.ts | 8 ++++++++ docs/operations/marketing-and-legal.md | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/apps/marketing/vercel.ts b/apps/marketing/vercel.ts index 98b1385093..0a1f265189 100644 --- a/apps/marketing/vercel.ts +++ b/apps/marketing/vercel.ts @@ -4,6 +4,14 @@ export const config: VercelConfig = { installCommand: "npm install -g vite-plus && vp install --filter '@t3tools/marketing...'", buildCommand: "vp run --filter @t3tools/marketing build", outputDirectory: "dist", + // Vercel builds this project on every push to every branch, and almost none of + // those pushes touch the site: on a busy day that is over a hundred builds and + // the account's build rate limit, which then fails unrelated pull requests and + // stalls the hosted app's release deploy. Exit 0 skips the build, anything + // else builds. The diff is against the branch's last deployed commit; when + // that commit is not in Vercel's shallow clone git fails, which builds. + ignoreCommand: + 'git diff --quiet "${VERCEL_GIT_PREVIOUS_SHA:-HEAD^}" HEAD -- . ../../packages/shared ../../pnpm-lock.yaml ../../pnpm-workspace.yaml', redirects: [{ source: "/app", destination: "https://app.pylon-code.com", permanent: true }], // Deployments were held off while this site still carried T3's product copy // and legal pages. Those pages are gone — Pylon publishes no terms, privacy, diff --git a/docs/operations/marketing-and-legal.md b/docs/operations/marketing-and-legal.md index 60f057ed35..5de88d9441 100644 --- a/docs/operations/marketing-and-legal.md +++ b/docs/operations/marketing-and-legal.md @@ -27,6 +27,15 @@ practices. workflow still deploys `apps/web` only; nothing in CI deploys the marketing site. +Vercel's git integration would otherwise build the site on every push to every +branch. On 2026-09-18 that was well over a hundred builds of a site nobody had +touched, which hit the account's build rate limit, failed the Vercel check on +unrelated pull requests, and stalled the hosted app's release deploy (#655). The +config's `ignoreCommand` now skips a build unless `apps/marketing`, +`packages/shared`, or the lockfile changed since the branch's last deployment. +A skipped build shows as a cancelled deployment in Vercel and a neutral check +on the pull request. To force one, redeploy from the Vercel dashboard. + ## Before adding a legal page back The site currently publishes no legal documents because it does not need to.