From 8ce3b0dc6a8eef886ab0641ef1e7bbae73e08033 Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 23 Jun 2023 10:49:49 +0800 Subject: [PATCH] fix: add favicon type Signed-off-by: Innei --- src/app/layout.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index fe995dfb54..8470c1d534 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -31,7 +31,13 @@ export const generateMetadata = defineMetadata(async (_, getData) => { }, description: seo.description, keywords: seo.keywords?.join(',') || '', - icons: [appConfig.site.favicon], + icons: [ + { + url: appConfig.site.favicon, + type: 'image/svg+xml', + sizes: 'any', + }, + ], themeColor: [ { media: '(prefers-color-scheme: dark)', color: '#000212' },