spb/autoscholar
Public
1import type { Metadata } from "next";2import type { ReactNode } from "react";3import { ThemeScript } from "@/components/ThemeScript";4import { mono, sans, serif } from "@/lib/fonts";5import "./globals.css";67const base = process.env.APP_BASE_URL ?? "http://localhost:8470";8const staging = process.env.STAGING_MODE === "1";910export const metadata: Metadata = {11 title: { default: "AutoScholar.ai — Autonomous Research Foundry", template: "%s · AutoScholar.ai" },12 description:13 "From research instructions to verifiable working papers. An AI-produced, publicly auditable library of working papers across disciplines. Research computed on MacLustr.",14 metadataBase: new URL(base),15 robots: staging ? { index: false, follow: false } : { index: true, follow: true },16 openGraph: { siteName: "AutoScholar.ai", type: "website", locale: "en_US" },17 alternates: {18 types: { "application/rss+xml": `${base}/feed.xml`, "application/atom+xml": `${base}/feed.atom` },19 },20};2122export default function RootLayout({ children }: { children: ReactNode }) {23 return (24 <html25 lang="en"26 suppressHydrationWarning27 className={`${serif.variable} ${sans.variable} ${mono.variable}`}28 >29 <head>30 <ThemeScript />31 </head>32 <body>{children}</body>33 </html>34 );35}36