fix: respect color scheme in PWA manifest theme color
This commit is contained in:
1 parent
2b1a03849d
commit
bdb2e8478d
2 files changed
+28
-3
No files matched your search
@@ -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: [
|
||||
|
||||
Reference in new issue
Block a user