web: skip irrelevant Vercel builds and defer old changelog pages
Every merged commit triggered a full Vercel build of web/, and every changelog release was prerendered for every locale.
web/tools/vercel-ignore-build.sh is the Vercel Ignored Build Step. It diffs VERCEL_GIT_PREVIOUS_SHA (last successful deployment for the branch) against the current commit over the web build inputs: web/, root .vercelignore, CHANGELOG.md, the managed relay catalog, and the presence worker's generated catalog. Exit 0 skips, exit 1 builds. A missing or unreachable previous SHA (Vercel clones with depth 10) fails open and builds.
generateStaticParams for /docs/changelog/[version] now returns the 12 newest releases. With Cache Components, omitted versions render on first request and are cached. Local Next build: 4,834 pages to 3,334, changelog paths 1,740 to 240. Vercel static generation for the docs zone: 67s to 46s.
Request-time rendering needed one more fix. changelog-store.ts reads CHANGELOG.md from disk, and Vercel functions only receive files Next traces inside the project root, so the file was missing at runtime. Today's nightly docs zone returns 500 for any version that is not prerendered. tools/sync-changelog.ts copies the repository file into web/ before next build (gitignored), and next.config.ts traces it for the changelog routes and the sitemap.
The docs channels are not covered by the ignore step: they deploy with vercel deploy --prod from docs-channels.yml, whose paths filter already skips native-only commits.
Verified on Vercel with a docs-zone deploy of this head to cmux-docs-dogfood: /docs/changelog/0.64.22 PRERENDER, /docs/changelog/0.64.10, /docs/changelog/0.1.0, /ja/docs/changelog/0.1.0 render on demand (MISS then HIT). An unknown version returns a 200 not-found shell (PPR fallback), which is the existing behavior class; main returns 500 for it.
Note for cmux.com: /docs/changelog/<version> is served by the cmux-docs-release zone, built from the latest v* tag (v0.64.22, Aug 3), which predates the per-version pages (Aug 4). Those URLs 404 in production until the next release tag.
Focused Bun tests pass (ignore script, changelog pages, deployment filter, changelog sync). tsgo --noEmit and ESLint on touched files pass. Local $autoreview clean.