From a045cdf117f3c6aaf1e26a6ede7d583812dcb9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Mon, 11 May 2026 13:48:59 +0300 Subject: [PATCH] Fix dark mode favicon (#1183) Prefer the adaptive SVG favicon so browsers can switch colors in dark mode. Exclude package sources from the app TypeScript project so production builds do not type-check standalone package code. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- public/favicon/favicon.svg | 6 +++--- src/app/layout.tsx | 6 +++--- tsconfig.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/favicon/favicon.svg b/public/favicon/favicon.svg index aef6e687..14d7e5e3 100644 --- a/public/favicon/favicon.svg +++ b/public/favicon/favicon.svg @@ -5,7 +5,7 @@ - \ No newline at end of file + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 44a2ea20..b6bcc492 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -62,12 +62,12 @@ export const metadata: Metadata = { publisher: "prompts.chat", icons: { icon: [ - { url: "/favicon/favicon.ico", sizes: "48x48" }, - { url: "/favicon/favicon-96x96.png", sizes: "96x96", type: "image/png" }, { url: "/favicon/favicon.svg", type: "image/svg+xml" }, + { url: "/favicon/favicon-96x96.png", sizes: "96x96", type: "image/png" }, + { url: "/favicon/favicon.ico", sizes: "48x48" }, ], apple: "/favicon/apple-touch-icon.png", - shortcut: "/favicon/favicon.ico", + shortcut: "/favicon/favicon.svg", }, manifest: "/favicon/site.webmanifest", other: { diff --git a/tsconfig.json b/tsconfig.json index cf9c65d3..a9ac38f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,5 +30,5 @@ ".next/dev/types/**/*.ts", "**/*.mts" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "packages"] }