Pass request headers explicitly into App request stores (#100333)
## Summary Continue decoupling App Router rendering from HTTP request objects by passing request headers explicitly from the Node and Edge adapters into request-store construction. The store retains the original headers object and its lazy header/cookie views, middleware cookie precedence, and cookie update callback behavior. Adds a scoped lint guard against reading `req.headers` in `app-render.tsx` and regression coverage for middleware cookies overriding incoming cookies on both Node and Edge. Internal render/store signatures change; supported public APIs are unchanged. ## Verification 173 test executions passed: - Middleware, live header views, draft mode, and cache-components cookies in `test-dev-turbo` and `test-start-turbo`; middleware, live header views, and draft mode in `test-start-webpack`. - Header static bailout in both production bundlers and standalone Edge bundling in `test-start-webpack`. - Five focused Server Action header/cookie cases in each of `test-dev-webpack`, `test-start-turbo`, and `test-start-webpack`, including redirect cookie writes and Edge async storage. <!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment