How to use icons in Metadata Files AND a metadata export
#73599
Replies: 1 comment
-
|
Hey @thany, I encountered a similar issue recently using Next.js To troubleshoot, I tested the behavior on Next.js It seems this is a version-dependent bug or an intentional breaking change that hasn’t been clearly documented. Updating to the latest Next.js should resolve the issue for you, as it ensures both file-based and exported metadata work together seamlessly. Hope this helps! 😊 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I've got a nice
icon.svgin my/appdirectory. This works great - Next.js generates the correct<link>tags. So far so good.Now I want to ADD an icon that isn't supported by the Metadata Files feature:
This will overwrite or disable (don't know which happens under the bonnet) all icons generated by the Metadata Files feature, leaving me with only the
mask-iconone.So the question is how do I go about ADDING one, instead of replacing all of them? I do want to keep using the Metadata Files feature, but I do also need to add a custom one.
If I put it like this:
It doesn't work either, but the other way around from previous. This way I only get the icons from the Metadata Files feature.
These are all in the
/appdirectory, in thelayout.tsx. I'm on Next.js 15.0.3.Beta Was this translation helpful? Give feedback.
All reactions