Next.js Discord

Discord Forum

Failed to handle request for /favicon.ico

Unanswered
Channel catfish posted this in #help-forum
Open in Discord
Channel catfishOP
I have just upgraded from 13.4.8 to 13.4.13. I am now getting the following error (image attached). My favicon.ico was in /public. I tried to fix by changing location to /app (as per next js official doco) but that did not help.

Note that site works fine in development mode, it is only after successful optimized production build that we see this error (aka once I have deployed)

6 Replies

if your favicon is in public folder use it like this
else remove it in app dir and nextjs will load it automatically
Channel catfishOP
thanks @@ts-ignore - I will try it out and let you know
@Channel catfish thanks <@510480545160101898> - I will try it out and let you know
the above screenshot is from app/layout.tsx
this will only work if it is Server component