Files
Jiachi LiuandGitHub bf09c65e53 Allow override icon rel (#49194)
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
2023-05-04 09:03:57 +00:00

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',
},
],
},
}