mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#976
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/951
Author: @Divkix
Created: 4/29/2026
Status: ✅ Merged
Merged: 4/29/2026
Merged by: @james-elicx
Base:
main← Head:fix/792-styled-jsx-race📝 Commits (1)
46011bffix: serialize SSR render and head collection in Pages Router (#792)📊 Changes
2 files changed (+53 additions, -1 deletions)
View changed files
📝
packages/vinext/src/server/pages-page-response.ts(+7 -1)📝
tests/pages-page-response.test.ts(+46 -0)📄 Description
Fixes #792
Summary
styledJsxInsertedHTML()(no styled-jsx style registry exists), so the specific Next.js bug does not applygetSSRHeadHTML()was called beforerenderToReadableStream(), causing<Head>content to be silently dropped from SSR HTMLclearSsrContext()ordering: SSR context was cleared before rendering, souseRouter()would return defaults during SSRTest plan
pages-page-response.test.tsthat verifyrenderToReadableStreamis called beforegetSSRHeadHTMLandclearSsrContextpages-page-responsetests (7 total) passheadtests (30) passpages-router.test.ts(196 tests) pass🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.