next.js
next.js copied to clipboard
backport: reading middleware cookies during render
Backport changes related to reading middleware-set cookies in render/actions.
- [x] #65008: initialize ALS with cookies in middleware
- [x] #65820: fix middleware cookie initialization
- [x] #67924: ensure cookies set in middleware can be read in a server action
- [x] #67956: fix: merged middleware cookies should preserve options
this required some minor surgery because RequestAsyncStorageWrapper became withRequestStore, but nothing that seems too bad
Hi there :wave:
It looks like this PR introduces broken links to the docs, please take a moment to fix them before merging:
| Broken link | Type | File |
|---|---|---|
| /docs/app/building-your-application/optimizing/package-bundling#analyzing-javascript-bundles | link | /docs/02-app/01-building-your-application/06-optimizing/13-memory-usage.mdx |
Thank you :pray: