spb/autoscholar
Public
1import type { Metadata, Viewport } from "next";2import type { ReactNode } from "react";3import { ThemeScript } from "@/components/ThemeScript";4import { mono, sans, serif } from "@/lib/fonts";5import "katex/dist/katex.min.css";6import "./globals.css";78const base = process.env.APP_BASE_URL ?? "http://localhost:8470";9const staging = process.env.STAGING_MODE === "1";1011export const metadata: Metadata = {12 title: { default: "AutoScholar.ai — Autonomous Research Foundry", template: "%s · AutoScholar.ai" },13 description:14 "From research instructions to verifiable working papers. An AI-produced, publicly auditable library of working papers across disciplines. Research computed on MacLustr.",15 metadataBase: new URL(base),16 robots: staging ? { index: false, follow: false } : { index: true, follow: true },17 openGraph: { siteName: "AutoScholar.ai", type: "website", locale: "en_US" },18 alternates: {19 types: { "application/rss+xml": `${base}/feed.xml`, "application/atom+xml": `${base}/feed.atom` },20 },21};2223export const viewport: Viewport = {24 width: "device-width",25 initialScale: 1,26 viewportFit: "cover",27 themeColor: [28 { media: "(prefers-color-scheme: light)", color: "#fcfbf7" },29 { media: "(prefers-color-scheme: dark)", color: "#0d0d0a" },30 ],31};3233export default function RootLayout({ children }: { children: ReactNode }) {34 return (35 <html36 lang="en"37 suppressHydrationWarning38 className={`${serif.variable} ${sans.variable} ${mono.variable}`}39 >40 <head>41 <ThemeScript />42 </head>43 <body>{children}</body>44 </html>45 );46}47