Next.js Discord

Discord Forum

unable to set favicon

Answered
Boby posted this in #help-forum
Open in Discord
Hi all, I am unable to set favicon to my next.js project any help would be highly appreciated.
I am using the link tag for adding the favicon.

https://github.com/Boby900/thumbnail-creator
Answered by Russian Blue
Your favicon needs to be .ico
If you want to use a .png or .jpg you need to rename your file to 'icon.png'.
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons
View full answer

2 Replies

Russian Blue
Your favicon needs to be .ico
If you want to use a .png or .jpg you need to rename your file to 'icon.png'.
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons
Answer
thank you @Russian Blue I rename my file to the icon.jpg and it worked