Skip to content

Commit 9cd0abf

Browse files
committed
Move themeColor to viewport to fix Next.js 14+ warning
1 parent 8592f6d commit 9cd0abf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/app/layout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Metadata } from "next";
1+
import type { Metadata, Viewport } from "next";
22
import { Inter } from "next/font/google";
33
import "./globals.css";
44
import Script from "next/script";
@@ -14,7 +14,6 @@ export const metadata: Metadata = {
1414
apple: "/icon-192.png",
1515
},
1616
manifest: "/manifest.json",
17-
themeColor: "#2563eb",
1817
appleWebApp: {
1918
capable: true,
2019
statusBarStyle: "default",
@@ -25,6 +24,10 @@ export const metadata: Metadata = {
2524
},
2625
};
2726

27+
export const viewport: Viewport = {
28+
themeColor: "#2563eb",
29+
};
30+
2831
import DisableDevTools from "@/components/common/DisableDevTools";
2932
import { UndoProvider } from "@/context/UndoContext";
3033
import { ThemeProvider } from "@/context/ThemeContext";

0 commit comments

Comments
 (0)