layout.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* eslint-disable @next/next/no-page-custom-font */
  2. import "./styles/globals.scss";
  3. import "./styles/markdown.scss";
  4. import "./styles/highlight.scss";
  5. import { getClientConfig, getFullApi } from "./config/client";
  6. import { type Metadata } from "next";
  7. export const metadata: Metadata = {
  8. title: "ChatGPT Next Web",
  9. description: "Your personal ChatGPT Chat Bot.",
  10. viewport: {
  11. width: "device-width",
  12. initialScale: 1,
  13. maximumScale: 1,
  14. },
  15. themeColor: [
  16. { media: "(prefers-color-scheme: light)", color: "#fafafa" },
  17. { media: "(prefers-color-scheme: dark)", color: "#151515" },
  18. ],
  19. appleWebApp: {
  20. title: "ChatGPT Next Web",
  21. statusBarStyle: "default",
  22. },
  23. };
  24. export default function RootLayout({
  25. children,
  26. }: {
  27. children: React.ReactNode;
  28. }) {
  29. return (
  30. <html lang="en">
  31. <head>
  32. <meta name="config" content={JSON.stringify(getClientConfig())} />
  33. <link rel="manifest" href={getFullApi("/site.webmanifest")}></link>
  34. <script src={getFullApi("/serviceWorkerRegister.js")} defer></script>
  35. </head>
  36. <body>{children}</body>
  37. </html>
  38. );
  39. }