Move App Page header parsing to handler entrypoints (#99506)
## Summary Continue decoupling App Router rendering from incoming request objects by parsing rendering headers at the handler boundary and passing ParsedRequestHeaders explicitly to app-render. Share the parser across Node, Edge, legacy server, and build/export entrypoints. Preserve parsing after Flight-header stripping and within existing error boundaries; leave request-store creation and Server Action handling unchanged. Add behavioral coverage for an RSC-first static fallback and report-only CSP nonce handling, verified before and after the extraction. ## Verification - Core header, router-state validation, and CSP suites with `pnpm test-dev-turbo` and `pnpm test-dev-webpack` (8 tests per bundler). - Existing `runtime-error-events` request-ID correlation and `app/index.test.ts` Node/Edge Flight cases with both dev bundlers (4 tests per bundler). - Cold static-fallback test with both production bundlers; CSP suite in production Webpack. - `pnpm test-start-webpack test/e2e/app-dir/app/standalone.test.ts` (isolated production build with Node and Edge routes). <!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment