mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #861] Support static metadata URL resolver (fillStaticMetadataSegment) #188
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#188
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?
Originally created by @github-actions[bot] on GitHub (Apr 18, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/861
Context
7873aea— Perf: Simplify static metadata handling (Next.js canary, 2026-04-17)Next.js added a dedicated
fillStaticMetadataSegment()function inlib/metadata/get-metadata-route.tsthat resolves static metadata file URLs without route-regex work. Static metadata files likefavicon.ico,icon.png, and other static metadata images no longer go through the genericfillMetadataSegment(..., true)path that was designed for dynamic metadata routes.What changed
fillStaticMetadataSegment(segment, lastSegment)function that:-placeholderfillMetadataSegment()now short-circuits tofillStaticMetadataSegment()whenisStatic=trueprops.paramsfillStaticMetadataSegment()for static metadata file mappingRelevance to vinext
If vinext serves static metadata files (favicon, icons, etc.) from the
app/directory, it needs to correctly compute their URLs. The new static path handles:/favicon.ico)/blog/-/favicon.ico)The routing layer that scans
app/directories should use equivalent logic when resolving static metadata file paths.