1 import "./globals.css"
2 import Providers from "../providers"
3 import { BareboneLayout, WideLayout } from "docs-ui"
4 import clsx from "clsx"
5 import { Metadata } from "next"
6 import { inter, robotoMono } from "./fonts"
7 import { config } from "@/config"
8
9 const ogImage =
10 "https://res.cloudinary.com/dza7lstvk/image/upload/v1732200992/Medusa%20Resources/opengraph-image_daq6nx.jpg"
11
12 export const metadata: Metadata = {
13 title: `%s - ${config.titleSuffix}`,
14 description: config.description,
15 metadataBase: new URL(
16 process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
17 ),
18 openGraph: {
19 images: [
20 {
21 url: ogImage,
22 type: "image/jpeg",
23 height: "1260",
24 width: "2400",
25 },
26 ],
27 },
28 twitter: {
29 images: [
30 {
31 url: ogImage,
32 type: "image/jpeg",
33 height: "1260",
34 width: "2400",
35 },
36 ],
37 },
38 }
39
40 export default function RootLayout({
41 children,
42 }: {
43 children: React.ReactNode
44 }) {
45 return (
46 <BareboneLayout
47 htmlClassName={clsx(inter.variable, robotoMono.variable)}
48 gaId={process.env.NEXT_PUBLIC_GA_ID}
49 >
50 <WideLayout
51 showBreadcrumbs={false}
52 ProvidersComponent={Providers}
53 showContentMenu={false}
54 >
55 {children}
56 </WideLayout>
57 </BareboneLayout>
58 )
59 }