Files
next.js/test/e2e/app-dir/metadata-icons/app/nested/page.tsx
9568a4f876 Fix favicon merging with customized icons (#67982)
### What

Support merging the static metadata file conventions `favicon.ico` with
other customized metadata icon from the module export.


### Why

`favicon.ico` should be displayed everywhere as it's the icon
representative of the website for all pages. Any customized `icon` in
metadata export `export const metadata` or `export function
generateMetadata()` shouldn't override the `favicon.ico` file
convention.


Fixes #55767

---------

Co-authored-by: hrmny <[email protected]>
2024-08-07 18:36:23 +02:00

15 lines
313 B
TypeScript

export default function Page() {
return <p>hello world</p>
}
export const metadata = {
icons: {
shortcut: '/shortcut-icon-nested.png',
apple: '/apple-icon-nested.png',
other: {
rel: 'apple-touch-icon-precomposed-nested',
url: '/apple-touch-icon-precomposed-nested.png',
},
},
}