| 1 | import type { Metadata } from "next"; |
| 2 | import Script from "next/script |
| 3 | import { Geist, Geist_Mono |
| 4 | import "./globals.css"; |
| 5 | |
| 6 | import { Providers } |
| 7 | import { SITE_URL } |
| 8 | import { Toaster } |
| 9 | |
| 10 | const geistSans = Geist |
| 11 | variable: "--font-geist-sans", |
| 12 | subsets: ["latin"], |
| 13 | }); |
| 14 | |
| 15 | const geistMono = Geist_Mono |
| 16 | variable: "--font-geist-mono", |
| 17 | subsets: ["latin"], |
| 18 | }); |
| 19 | |
| 20 | const DESCRIPTION = " |
| 21 | |
| 22 | export const metadata: |
| 23 | // Makes the file-based opengraph-image routes resolve to absolute URLs. |
| 24 | metadataBase: new URL |
| 25 | title: { default: " |
| 26 | description: DESCRIPTION, |
| 27 | openGraph: { |
| 28 | siteName: "Ghost", |
| 29 | type: "website", |
| 30 | title: "Ghost", |
| 31 | description: DESCRIPTION, |
| 32 | url: "/", |
| 33 | }, |
| 34 | twitter: { card: " |
| 35 | }; |
| 36 | |
| 37 | export default function RootLayout |
| 38 | return ( |
| 39 | <html |
| 40 | lang="en" |
| 41 | suppressHydrationWarning |
| 42 | className={`${geistSans |
| 43 | > |
| 44 | <head> |
| 45 | {process.env.NODE_ENV |
| 46 | <Script |
| 47 | src="//unpkg.com/react-grab/dist/index.global.js" |
| 48 | crossOrigin="anonymous" |
| 49 | strategy="beforeInteractive" |
| 50 | /> |
| 51 | )} |
| 52 | </head> |
| 53 | <body className="min-h-full flex flex-col |
| 54 | <Providers>{children} |
| 55 | <Toaster /> |
| 56 | </body> |
| 57 | </html> |
| 58 | ); |
| 59 | } |