Repository Public
1import type { Metadata, Viewport } from "next";2import "./globals.css";3import { THEME_SCRIPT } from "@/components/layout/ThemeToggle";4import { env } from "@/lib/env";5import { HEADLINE, SITE_NAME, SUBTITLE } from "@/lib/seo";67export const metadata: Metadata = {8 metadataBase: new URL(env.publicUrl),9 title: { default: `${SITE_NAME} — ${HEADLINE}`, template: `%s — ${SITE_NAME}` },10 description: SUBTITLE,11 applicationName: SITE_NAME,12 authors: [{ name: "Simon-Pierre Boucher" }],13 openGraph: { siteName: SITE_NAME, locale: "fr_CA", type: "website" },14 robots: env.mode === "production" ? { index: true, follow: true } : { index: false, follow: false },15 formatDetection: { telephone: false, email: false, address: false },16};1718export const viewport: Viewport = {19 width: "device-width",20 initialScale: 1,21 themeColor: [{ media: "(prefers-color-scheme: light)", color: "#fbfaf6" }, { media: "(prefers-color-scheme: dark)", color: "#0b1426" }],22};2324/** The shell shared by the public site and the studio: document, fonts, tokens, theme. Each has its own chrome. */25export default function RootLayout({ children }: { children: React.ReactNode }) {26 return (27 <html lang="fr-CA" suppressHydrationWarning>28 <head>29 <script dangerouslySetInnerHTML={{ __html: THEME_SCRIPT }} />30 </head>31 <body>{children}</body>32 </html>33 );34}35