1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /* eslint-disable @next/next/no-page-custom-font */
- import "./styles/globals.scss";
- import "./styles/markdown.scss";
- import "./styles/highlight.scss";
- import { getClientConfig, getFullApi } from "./config/client";
- import { type Metadata } from "next";
- export const metadata: Metadata = {
- title: "ChatGPT Next Web",
- description: "Your personal ChatGPT Chat Bot.",
- 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: "ChatGPT Next Web",
- statusBarStyle: "default",
- },
- };
- export default function RootLayout({
- children,
- }: {
- children: React.ReactNode;
- }) {
- return (
- <html lang="en">
- <head>
- <meta name="config" content={JSON.stringify(getClientConfig())} />
- <link rel="manifest" href={getFullApi("/site.webmanifest")}></link>
- <script src={getFullApi("/serviceWorkerRegister.js")} defer></script>
- </head>
- <body>{children}</body>
- </html>
- );
- }
|