Favicon works in local but not in deploy (App Router, file-based icon in /app) — /favicon.ico loads in production but the tab icon doesn’t show #84243
-
SummaryDescribe the bug Using Next.js App Router with the file-based icon in the app/ directory, the favicon shows in local development but not in production. Additional informationSteps to reproduce Next.js project using App Router (app/). Favicon placed via file-based metadata in app/ (per docs), e.g. app/favicon.ico. Run locally → favicon appears on the tab. Deploy using Easypanel with Nixpacks. In production → https://4success.com.ar/favicon.ico loads, but the tab icon is not shown. Expected behavior If the favicon is provided via file-based metadata in app/ and /favicon.ico is reachable in production, the tab icon should appear the same as it does locally. Links Site: https://4success.com.ar Favicon file (production): https://4success.com.ar/favicon.ico Hosting / Build Hosting: Easypanel Builder: Nixpacks Notes No extra icon configuration added; relying on file-based metadata in app/ as per Next.js documentation. Looking for guidance on why the favicon wouldn’t display on the tab in production despite the file being accessible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
Hi did you try in incognito mode? Browsers cache the favicon and if they ever got 404'd might show the empty favicon for a while.
Try to hard refresh by opening dev tools and doing
cmd+shift+R
, or verify it in incognito mode.