layout.tsx 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 } from "./config/client";
  6. export const metadata = {
  7. title: "ChatGPT Next Web",
  8. description: "Your personal ChatGPT Chat Bot.",
  9. viewport: {
  10. width: "device-width",
  11. initialScale: 1,
  12. maximumScale: 1,
  13. },
  14. themeColor: [
  15. { media: "(prefers-color-scheme: light)", color: "#fafafa" },
  16. { media: "(prefers-color-scheme: dark)", color: "#151515" },
  17. ],
  18. appleWebApp: {
  19. title: "ChatGPT Next Web",
  20. statusBarStyle: "default",
  21. },
  22. };
  23. export default function RootLayout({
  24. children,
  25. }: {
  26. children: React.ReactNode;
  27. }) {
  28. return (
  29. <html lang="en">
  30. <head>
  31. <meta name="config" content={JSON.stringify(getClientConfig())} />
  32. <link rel="manifest" href="/site.webmanifest"></link>
  33. <script src="/serviceWorkerRegister.js" defer></script>
  34. </head>
  35. <body>{children}</body>
  36. </html>
  37. );
  38. }