mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #89] [MERGED] refactor(head): improve SSR head management and validation #299
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#299
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/89
Author: @ygcaicn
Created: 2/26/2026
Status: ✅ Merged
Merged: 3/29/2026
Merged by: @james-elicx
Base:
main← Head:head📝 Commits (4)
32e6cc2refactor(head): improve SSR head management and validationd6890a8Merge remote-tracking branch 'origin/main' into ygcaicn-head397f139refactor(head): remove redundant ALLOWED_HEAD_TAGS guard in headChildToHTMLb7e9e16refactor(head): hoist rawContentTags to module-level Set📊 Changes
1 file changed (+19 additions, -24 deletions)
View changed files
📝
packages/vinext/src/shims/head.ts(+19 -24)📄 Description
getValidHeadChildrento collect valid head elements for SSR, ensuring consistent validation and warning for disallowed tags in development.headChildToHTMLto handle props and convert them to HTML strings.Headcomponent's SSR logic to utilize the new validation function, enhancing code clarity and maintainability.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.