I have tried as of all I know
-
Deleted cached
-
Changed the icon to the one I wanted
Whatever image I am replacing with favicon.ico it is changing to the previous icon and shows the default
Help!!!
I am expecting to add icon of my own
I have tried as of all I know
Deleted cached
Changed the icon to the one I wanted
Whatever image I am replacing with favicon.ico it is changing to the previous icon and shows the default
Help!!!
I am expecting to add icon of my own
4
Answers
Check this Site explain and icon Size …
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons
As i know, u can remove the default favicon.ico, and add a icon.png at /app folder.You can use name favicon or icon, custom file name is not allowed. Next.js will evaluate the file and automatically add the appropriate tags to your app’s element.
You can see the nextjs document for more details https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons#image-files-ico-jpg-png
To change the favicon in your next app, you’ll have to replace the default icon with the new favicon you want. This will mean the new icon will have
favicon.ico
containing your new icon.After correctly replacing it, you must empty cache and hard reload for it to take effect as so:
The steps to reproduce:
This can happen when the file name is the same as before.
Potential Solutions:
and update the link:
<link rel="icon" href="/favicontwo.ico" />
<link rel="icon" href="/favicon.ico?v=2" />
which forces the browser tofetch the file again
<link rel="icon" href="/favicon.ico" type="image/x-icon" />