Next.js Discord

Discord Forum

weird thing with favicon.ico | appDir

Unanswered
Naeemgg posted this in #help-forum
Open in Discord
Hey guys, I'm using next v13.4 and as of the latest docs I have put the favicon.ico file to appDir
/app/favicon.ico but still I'm getting that default vercel favicon.

18 Replies

yep, I've tried on edge, firefox, and waterfox...
do you have export const metadata, export (async) function generateMetadata and/or other favicon.ico files anywhere?
if not, can you make a reproduction repository
yes export metadata is there
and is one in the public folder?
then show your export metadata
import type { Metadata } from 'next'
 
export const metadata: Metadata = {
  title: 'there is my title',
  description: 'this is a long desc...',
}
...
it is in layout.tsx
hmm give me a reproduction then, because from your description everything is fine
but one thing I'm using i18n so my folder structure is something like this
Giant panda
favicons are cached VERY hard. Try various browsers in incognito mode or even attempt deploying. Local favicon caches are hard to punch
but how was it showing the same for all browsers!?
even the browsers I don't use