Skip to content

fix(pages): preserve gSSP data response status and cookies - #2792

Open
iamhaseebn wants to merge 1 commit into
cloudflare:mainfrom
iamhaseebn:fix/pages-data-gssp-response
Open

fix(pages): preserve gSSP data response status and cookies#2792
iamhaseebn wants to merge 1 commit into
cloudflare:mainfrom
iamhaseebn:fix/pages-data-gssp-response

Conversation

@iamhaseebn

@iamhaseebn iamhaseebn commented Aug 2, 2026

Copy link
Copy Markdown

Summary

  • reuse the shared Pages response-header translation for Next data responses
  • forward response status codes set by getServerSideProps
  • preserve multiple Set-Cookie fields through the JSON response builder

Fixes #2779.

Validation

  • 123 focused tests passed across pages-page-handler, pages-page-response, and pages-data-route
  • formatting, lint, and type checks passed for all changed files
  • vinext package build passed

@iamhaseebn
iamhaseebn force-pushed the fix/pages-data-gssp-response branch from 924bbdf to be23f67 Compare August 3, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pages Router: _next/data responses drop gSSP status and fold multiple Set-Cookie values (prod only)

1 participant