diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 16d3c31..1a8ebbe 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,11 +1,12 @@ import type { Metadata, Viewport } from "next"; -import { Space_Grotesk, Inter, IBM_Plex_Mono } from "next/font/google"; import "./globals.css"; import { ToastProvider } from "@/components/ui/Toast"; -const display = Space_Grotesk({ subsets: ["latin"], variable: "--font-display", weight: ["500", "700"] }); -const body = Inter({ subsets: ["latin"], variable: "--font-body", weight: ["400", "500", "600"] }); -const mono = IBM_Plex_Mono({ subsets: ["latin"], variable: "--font-mono", weight: ["400", "500"] }); +// We deliberately do NOT use `next/font/google` here. That loader downloads +// fonts at build time, which fails in restricted build environments (e.g. +// Render) with "Cannot read properties of null (reading '1')". Instead we +// load the same fonts via a standard at runtime. The matching CSS +// variables live in globals.css, so the typography is unchanged. export const metadata: Metadata = { title: "Vessel — Branch Delivery Console", @@ -21,10 +22,18 @@ export const viewport: Viewport = { export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - + +
+ + + +