Metadata, Favicon, AppName in production mode.
Unanswered
Joachim Nedaouka posted this in #help-forum
Original message was deleted.
25 Replies
Original message was deleted
Hi please don’t make a new post. Just bumping this post is good. Reposts are against our rules
Okay
To answer your question: https://nextjs.org/docs/app/building-your-application/optimizing/metadata
I tried it but it didn't work
@Joachim Nedaouka I tried it but it didn't work
American Chinchilla
what are you trying to accomplish and what's it currently doing?
I'm trying to set a favicon for my next js app.....I followed next js docs steps and I put the favicon.ico within the
app/ directory but in browsers my favicon is not shown@Joachim Nedaouka I'm trying to set a favicon for my next js app.....I followed next js docs steps and I put the favicon.ico within the `app/` directory but in browsers my favicon is not shown
American Chinchilla
favicon.ico needs to go in the
public/ directory, otherwise it won't be accessible to the client@American Chinchilla favicon.ico needs to go in the `public/` directory, otherwise it won't be accessible to the client
This is wrong, app/favicon.ico is fine
American Chinchilla
there's probably a way to do it within the app router, given that's what's on the documentation. i've always just had it in the public folder though (same location as the default favicon.ico) and that seems to work
For the app router only
This is likely due to browser caching
American Chinchilla
^this
Browsers cache favicons pretty aggressively
American Chinchilla
@joulev do you know how long ago that app router support for favicons got added?
i honestly had no idea that was a thing
@American Chinchilla <@484037068239142956> do you know how long ago that app router support for favicons got added?
I think it was about the same time the whole metadata thing was released
13.2 or 13.3
American Chinchilla
interesting
I don’t remember exactly what version but should be one of those two
American Chinchilla
kinda cool ngl
@joulev This is likely due to browser caching
So should I clear the browser cache??
It works fine in dev mode
But not in production