39 lines
813 B
TypeScript
39 lines
813 B
TypeScript
import type { Metadata } from "next"
|
|
import type { ReactNode } from "react"
|
|
|
|
import "./globals.css"
|
|
|
|
const metadataBase = new URL(process.env.CMS_WEB_ORIGIN ?? "http://localhost:3000")
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase,
|
|
title: {
|
|
default: "CMS Web",
|
|
template: "%s | CMS Web",
|
|
},
|
|
description: "Public frontend for the CMS monorepo",
|
|
applicationName: "CMS Web",
|
|
openGraph: {
|
|
type: "website",
|
|
siteName: "CMS Web",
|
|
title: "CMS Web",
|
|
description: "Public frontend for the CMS monorepo",
|
|
url: metadataBase,
|
|
},
|
|
alternates: {
|
|
canonical: "/",
|
|
},
|
|
robots: {
|
|
index: true,
|
|
follow: true,
|
|
},
|
|
}
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="en">
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|