Skip to content

fix(build): preserve staged prerender routing - #3151

Draft
james-elicx wants to merge 7 commits into
codex/cdn-v2-build-stagesfrom
codex/cdn-v2-prerender-stages
Draft

fix(build): preserve staged prerender routing#3151
james-elicx wants to merge 7 commits into
codex/cdn-v2-build-stagesfrom
codex/cdn-v2-prerender-stages

Conversation

@james-elicx

@james-elicx james-elicx commented Sep 2, 2026

Copy link
Copy Markdown
Member

Part 11 of 16 in the staged CDN adapter stack. Depends on #3150.

Summary

  • carries adapter-selected stage routing through prerender path discovery
  • starts prerender servers from canonical dist while resolving the executable RSC graph from its configured output root
  • keeps manifests and prerendered artifacts canonical under dist/server
  • updates the stable concrete-path sidecar without rewriting content-hashed entries or sourcemaps
  • keeps Node prerender from evaluating host-only runtime imports

Validation

  • focused prerender, custom-output, pool, and production-build tests
  • cumulative exact-tip changed-test sweep: 3,461 passed, 2 skipped
  • full vp check and vinext package build

Review size

  • Implementation: +324 / -91 LOC
  • Tests and fixtures: +953 / -71 LOC
  • Other (docs, config, lockfile): +0 / -0 LOC
  • 21 changed files

Measured against codex/cdn-v2-build-stages after rebasing onto main@a6931c0.

@pkg-pr-new

pkg-pr-new Bot commented Sep 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vinext/cloudflare@3151
npm i https://pkg.pr.new/create-vinext-app@3151
npm i https://pkg.pr.new/@vinext/types@3151
npm i https://pkg.pr.new/vinext@3151

commit: be9d340

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared be9d340 against base 01bb5ba using alternating same-runner rounds. Next.js was unchanged and skipped.

0 improved · 0 regressed · 6 within ±1.5%

Scenario Framework Baseline Current Change
Client bundle size (gzip) vinext 142.3 KB 142.3 KB ⚫ +0.0%
Client entry size (gzip) vinext 129.6 KB 129.6 KB ⚫ +0.0%
Dev server cold start vinext 3.23 s 3.22 s ⚫ -0.5%
Production build time vinext 3.45 s 3.45 s ⚫ -0.2%
RSC entry closure size (gzip) vinext 125.6 KB 125.6 KB ⚫ +0.0%
Server bundle size (gzip) vinext 216.4 KB 216.4 KB ⚫ +0.0%

View detailed results and traces

🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor
Example Preview Production Original
app-router-cloudflare preview production
pages-router-cloudflare preview production
app-router-playground preview production original
realworld-api-rest preview production
nextra-docs-template preview production
benchmarks preview production
hackernews preview production original
workers-cache preview production
static-export preview production
web preview production

@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 8fef4f5 to 83a2d5e Compare September 2, 2026 13:41
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 83a2d5e to 5424ee8 Compare September 2, 2026 14:16
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 5424ee8 to 5cf25aa Compare September 2, 2026 15:11
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 5cf25aa to 76a64f9 Compare September 2, 2026 15:21
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 76a64f9 to 13971f9 Compare September 2, 2026 15:27
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 13971f9 to f5b4610 Compare September 2, 2026 15:36
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from f5b4610 to 6b78ef1 Compare September 2, 2026 15:41
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 6b78ef1 to 7721179 Compare September 2, 2026 16:26
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 7721179 to 30f9b99 Compare September 2, 2026 16:32
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 30f9b99 to fa86a2f Compare September 2, 2026 16:37
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from fa86a2f to 1b55cd7 Compare September 2, 2026 16:46
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 1b55cd7 to 3f2cbbc Compare September 2, 2026 17:12
@james-elicx
james-elicx force-pushed the codex/cdn-v2-prerender-stages branch from 3f2cbbc to be9d340 Compare September 2, 2026 18:46
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