Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#4850 from ImBIOS/patch-2
Browse files Browse the repository at this point in the history
chore(app/layout.tsx): fix deprecated viewport nextjs 14
  • Loading branch information
Dogtiti authored Jul 5, 2024
2 parents c4a6c93 + 6efe4fb commit 70907ea
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "./styles/globals.scss";
import "./styles/markdown.scss";
import "./styles/highlight.scss";
import { getClientConfig } from "./config/client";
import { type Metadata } from "next";
import type { Metadata, Viewport } from "next";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { getServerSideConfig } from "./config/server";
import { GoogleTagManager } from "@next/third-parties/google";
Expand All @@ -12,19 +12,20 @@ const serverConfig = getServerSideConfig();
export const metadata: Metadata = {
title: "NextChat",
description: "Your personal ChatGPT Chat Bot.",
viewport: {
width: "device-width",
initialScale: 1,
maximumScale: 1,
appleWebApp: {
title: "NextChat",
statusBarStyle: "default",
},
};

export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
maximumScale: 1,
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "#fafafa" },
{ media: "(prefers-color-scheme: dark)", color: "#151515" },
],
appleWebApp: {
title: "NextChat",
statusBarStyle: "default",
},
};

export default function RootLayout({
Expand Down

0 comments on commit 70907ea

Please sign in to comment.