Favicons with MetaData API files system not working #1519
Replies: 3 comments 2 replies
-
The I'll move this to a discussion since it's a Next.js usage question and not a bug report about |
Beta Was this translation helpful? Give feedback.
-
My middleware.js is like this:
|
Beta Was this translation helpful? Give feedback.
-
Same here. I have added in /public/favicon.ico and even in src/app/favicon.ico still it’s not working. Even the example one when ran locally doesn’t load favicon. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
This is for Next.js 14.2.16. - App Router
Hello after installing next-intel the favicon no longer load from the file-based metadata system. I had tried to have the favion.ico in
/src/app/[locale]
and/src/app
. (https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons)I got the favicons to work by doing the alternative by using Next.js metadata export object and putting the favicons in the
/public/favicons
Eg from layout.js:
However the Next.js guide mention i should be using the special metadata files inside the app folder for favicons.
What should I do?
Verifications
Mandatory reproduction URL
/sorry-offline
Reproduction description
See above description
Expected behaviour
See above description
Beta Was this translation helpful? Give feedback.
All reactions