From b2daaa21081cd0d55713f545688a14df5b13e883 Mon Sep 17 00:00:00 2001 From: "Carlos (Almeira)" Date: Sat, 28 Mar 2026 12:29:19 -0500 Subject: [PATCH] fix: resolve Google Fonts fetch error during build - Removed next/font/google from layout.tsx - Added standard Google Fonts in HTML head - Defined --font-inter and --font-outfit in globals.css - This allows the build to pass in environments with restricted internet access. --- src/app/globals.css | 2 ++ src/app/layout.tsx | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index a448ab5..4518585 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -7,6 +7,8 @@ --futuristic-cyan: #06b6d4; --futuristic-pink: #ec4899; --futuristic-blue: #3b82f6; + --font-outfit: 'Outfit', sans-serif; + --font-inter: 'Inter', sans-serif; } } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 5ea1100..230cfa8 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,4 @@ import type { Metadata } from "next"; -import { Inter, Outfit } from "next/font/google"; import { Navbar } from "@/components/Navbar"; import NewsTicker from "@/components/NewsTicker"; import { GlobalTopBanner } from "@/components/AdWrappers"; @@ -7,8 +6,7 @@ import { getEntity } from "@/app/actions/entity"; import { GlobalPlayer } from "@/components/media/GlobalPlayer"; import "./globals.css"; -const outfit = Outfit({ subsets: ["latin"], variable: "--font-outfit" }); -const inter = Inter({ subsets: ["latin"], variable: "--font-inter" }); + export async function generateMetadata(): Promise { const entity = await getEntity(); @@ -30,7 +28,12 @@ export default async function RootLayout({ const entity = await getEntity(); return ( - + + + + + +