Redirects should be respected after cookies.set - #97872
Conversation
Stats from current PR🟢 1 improvement
📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
Build Cache
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📎 Tarball URLCommit: 8602306 |
Failing test suitesCommit: 8602306 | About building and testing Next.js
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● sync IO that blocks the root › does not hang the build and reports sync IO errors - with --debug-prerender › /async-root-sync-page
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route
Expand output● server-action-cookie-rewrite › should use a cookie set by a Server Action when refreshing the route |
A rerender caused by
cookies.setin a server action bypassesrewrites()defined in next.config.js.Here's a separate repro: samselikoff/2026-04-10-stale-cookie-during-refresh