File conventions
App icons: favicon, icon and apple-icon
Special metadata filenames create corresponding browser icon links. favicon.ico belongs at the app root; icon and apple-icon can be segment-specific. Supply appropriate original binary images rather than renaming arbitrary files to .png. Generated icons have additional version-specific contracts. Example context: Next.js 16.x documentation lane; illustrative snippet or file tree, not executed. Exact candidate patch 16.4.6 remains unverified. Expected behavior / verification: With real valid local icon assets, inspect generated link tags and request the referenced URLs. Verify MIME type and actual image bytes; filenames alone do not prove valid images.
Formal Syntax & Structure
nextjs syntaxnextjs
app/favicon.ico; app/icon.png; app/apple-icon.pngWorking Example
Example Snippetnextjs
app/favicon.icoapp/icon.pngapp/apple-icon.pngapp/layout.tsx