Favicon in Next.js/React: clean setup
In Next.js, place icon files in /public and reference them using built-in metadata (App Router) or <Head> (Pages Router).
Simple workflow
- Generate a favicon ZIP set.
- Put files into /public (e.g., /public/icons/).
- Add links in <head> (metadata or <Head>).
Don’t forget manifest.json
If you support PWA or Android shortcuts, include a manifest with 192/512 icons.
FAQ
Do I still need favicon.ico if I have SVG?
It’s recommended. ICO improves compatibility and some edge cases.
Why do I see the old icon after deploy?
Caching is the usual reason. Verify paths and hard refresh.