I believe that there are two issues here:
- The metadata configuration is looking for the icon in the wrong location
- For Next.js App Router, the favicon needs to be in the correct location
So, you’d need to:
- Move the
favicon.icofile to the/appdirectory, as Next.js specifically looks for it there - Removing the
iconsfield from the metadata since we’re using the standardfavicon.icoconvention - Next.js will automatically detect and use the
favicon.icofile when it’s placed in the/appdirectory
After making these changes, your favicon should appear correctly in the browser tab. If you want to use your SVG logo as the favicon instead, you would need to place it in the correct location and update the metadata accordingly.