Skip to content

perf(build): overlap type checking and the AI index with the site build - #974

Open
letstokenize wants to merge 4 commits into
mainfrom
uddhav/optimize-vercel-deploy-time-a9f1fa
Open

letstokenize wants to merge 4 commits into
mainfrom
uddhav/optimize-vercel-deploy-time-a9f1fa

Conversation

@letstokenize

@letstokenize letstokenize commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Docs deploys take about 4 minutes since #986. About a minute of that is waiting that doesn't need to happen: the type check runs alone before the site build starts, and the first build pass waits on the AI search index. This overlaps both with the build.

Changes

  • Run type checking alongside the site build. pnpm build runs check:types and build:site concurrently through pnpm's script selector, and still fails if either one fails. On Vercel the type check takes about 40s before the build starts today.
  • Don't block the first RSC scan on the AI search index. During plugin-rsc's reference scans, the server manifest resolves to an empty stub, so the index keeps fetching the external llms.txt sources in the background. The scans discard module bodies anyway. The real RSC build still waits for the full manifest. In the latest production build, scan 1 took 42s and finished one second after the index. The scan itself takes about 20s.

The Zyzz scan skip originally in this PR landed on main in #986 as skipReferenceScans. This branch now uses that.

Testing

  • pnpm build on the merged branch: passes in 3m01s locally, with type checking finishing during pass 3.
  • Before perf(build): cut site build time ~5x by removing Zyzz compile overhead #986, this PR's earlier version cut the reference scans from 5–9 minutes to 1–2.5 minutes across three Vercel preview builds. The scan skip that did that now lives on main.
  • pnpm check:types, Biome, and check-styles pass.
  • The Vercel preview for this branch exercises the AI index change, which only applies when CLOUDFLARE_API_TOKEN is set.

@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tempo-docs Ready Ready Preview Oct 15, 2026 3:36am UTC

Request Review

…l-deploy-time-a9f1fa

# Conflicts:
#	.github/workflows/verify.yml
#	vite.config.ts
@letstokenize letstokenize changed the title perf(build): skip Zyzz and AI index waits in RSC scan passes perf(build): overlap type checking and the AI index with the site build Oct 14, 2026
…l-deploy-time-a9f1fa

# Conflicts:
#	package.json
…l-deploy-time-a9f1fa

# Conflicts:
#	vite.config.ts

This branch was successfully deployed

1 active deployment
Preview — d9f28164 Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant