mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## What? To avoid the default `favicon.ico` request by the browser, we are adding a vercel `favicon.ico` to the project. Currently, we handle exceptions for `favicon.ico` entering the Dynamic Route `[lang]` in the following manner, but in this case, favicon.ico renders the entire page. [example:app-dir-i18n-routing](https://github.com/vercel/next.js/blob/canary/examples/app-dir-i18n-routing/get-dictionary.ts#L12) ```ts export const getDictionary = async (locale: Locale) => dictionaries[locale]?.() ?? dictionaries.en(); ``` Instead of `favicon.ico`, the full HTML of the default language 'en' is rendered.  In the correct case  Fixes https://github.com/vercel/next.js/issues/46918 Co-authored-by: Sam Ko <[email protected]>