mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Fixes #48392 When passing down `Array<IconDescriptor>`, it should allow overriding `rel` prop of icon instead of always picking the default one fix NEXT-1085
25 lines
544 B
TypeScript
25 lines
544 B
TypeScript
export default function page() {
|
|
return 'icons'
|
|
}
|
|
|
|
export const metadata = {
|
|
icons: {
|
|
icon: [
|
|
{ url: '/icon.png' },
|
|
new URL('/icon.png', 'https://example.com'),
|
|
{ url: '/icon2.png', rel: 'apple-touch-icon' }, // override icon rel
|
|
],
|
|
shortcut: ['/shortcut-icon.png'],
|
|
apple: [
|
|
{ url: '/apple-icon.png' },
|
|
{ url: '/apple-icon-x3.png', sizes: '180x180', type: 'image/png' },
|
|
],
|
|
other: [
|
|
{
|
|
rel: 'other-touch-icon',
|
|
url: '/other-touch-icon.png',
|
|
},
|
|
],
|
|
},
|
|
}
|