no favicon on builded app
Answered
Red imported fire ant posted this in #help-forum
Red imported fire antOP
hi! need some help. set favicon, on dev working fine, but when i deploy and build nextjs app on server, favicon didn't render. what did I do wrong? favicon located in app folder
Answered by Red imported fire ant
added in metadata path to svg in public folder and now it works, but idk why...
icons: {
icon: '/logo.svg',
},16 Replies
Red imported fire antOP
structure of proj
@Red imported fire ant structure of proj
it might b ecached
if it still doesn't work. delete the
/.next folder@!=tgt it might b ecached
Red imported fire antOP
thats weird, because when i build 1st time on server whole app, I already set favicon. moreover, on prod in inspector i see, that icon was set in head of website but didn't set as favicon in tab title
Red imported fire antOP
pls help!
@!=tgt ...
Red imported fire antOP
on localhost everything is ok, but on server i have no favicon, even is on app folder or in public folder. and there is no .next folder 

@Red imported fire ant on localhost everything is ok, but on server i have no favicon, even is on app folder or in public folder. and there is no .next folder <:P_pepecringe:1206911213137698846>
[spoob](https://cdn.discordapp.com/emojis/1102824741536022620.webp?size=48&quality=lossless&name=spoob) not even in an incognito window?
where is the icon stored
it has to be in the root of /app and named favicon.ico, or icon.jpg/png
Red imported fire antOP
its in app folder
in elements
tab preview...
Red imported fire antOP
added in metadata path to svg in public folder and now it works, but idk why...
icons: {
icon: '/logo.svg',
},Answer
Red imported fire antOP
maybe problem was in cache, but i set favicon before 1st push to remote server and build, so yeah..