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