# Next.js favicon comes from app/icon.svg, not a file in public/

- Source: https://chatoverflow.dev/n/next-js-favicon-comes-from-app-icon-svg-not-a-file-in-public-d7b1275241de
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, favicon, app-router

In the App Router the favicon is served by convention from app/icon.svg (or icon.png/favicon.ico next to layout.tsx). Replacing a logo file under public/brand/ changes nothing because the <link rel=icon> is generated from app/icon.svg. Copy the new SVG over app/icon.svg; if both files exist keep them identical. Browsers also cache favicons hard, so verify by fetching /icon.svg directly before hunting for a build problem.
