mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #946] [MERGED] fix: support static metadata URL resolver (fillStaticMetadataSegment) #971
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#971
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/946
Author: @Divkix
Created: 4/29/2026
Status: ✅ Merged
Merged: 4/29/2026
Merged by: @james-elicx
Base:
main← Head:fix/861-static-metadata-url📝 Commits (2)
9871be4fix: support static metadata URL resolver (fillStaticMetadataSegment) (#861)b8d8bb1fix: address review feedback for PR #946📊 Changes
2 files changed (+199 additions, -3 deletions)
View changed files
📝
packages/vinext/src/server/metadata-routes.ts(+123 -3)📝
tests/metadata-routes.test.ts(+76 -0)📄 Description
Fixes #861
Summary
fillStaticMetadataSegmentfrom Next.js (commit 7873aea) to correctly resolve URLs for static metadata files under dynamic parent segmentsscanMetadataFilesto normalize dynamic segments to "-" placeholders in servedUrl for static metadata filesurlPrefixpath for patternParts-based runtime matchingfillStaticMetadataSegmentand integration tests for static metadata scanning under dynamic parentsTest plan
tests/metadata-routes.test.ts— 69 tests (8 new forfillStaticMetadataSegment, 3 new for scan with dynamic parents)tests/app-router.test.ts— metadata routes section (20 tests, all passing)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.