fix: respect color scheme in PWA manifest theme color

This commit is contained in:
ajnart committed 2026-09-06 22:54:43 +02:00
1 parent 2b1a03849d
commit bdb2e8478d
2 files changed
+28 -3

No files matched your search

+7
View File
@@ -68,6 +68,13 @@ const nextConfig: NextConfig = {
// eslint-disable-next-line @typescript-eslint/require-await,no-restricted-syntax
async headers() {
return [
{
source: "/manifest.webmanifest",
headers: [
{ key: "Accept-CH", value: "Sec-CH-Prefers-Color-Scheme" },
{ key: "Vary", value: "Sec-CH-Prefers-Color-Scheme" },
],
},
{
source: "/sw.js",
headers: [