Commit e35ace6
examples: add favicon.ico for to avoid browser requests (#62511)
## 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 #46918
Co-authored-by: Sam Ko <[email protected]>1 parent 0d1b11f commit e35ace6
1 file changed
+0
-0
lines changedBinary file not shown.
0 commit comments