next.js icon indicating copy to clipboard operation
next.js copied to clipboard

backport: reading middleware cookies during render

Open lubieowoce opened this issue 1 year ago • 2 comments

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

lubieowoce avatar Aug 23 '24 13:08 lubieowoce

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:

github-actions[bot] avatar Aug 23 '24 13:08 github-actions[bot]

Tests Passed

ijjk avatar Aug 23 '24 13:08 ijjk