From 358fe1565ae99bdfb714e00351b7b91067497747 Mon Sep 17 00:00:00 2001 From: CheFu Date: Sat, 20 Jun 2026 10:48:06 +0200 Subject: [PATCH] Fix production build font loading --- src/app/layout.tsx | 13 +------------ src/app/styles/base.css | 3 ++- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 7fb3bff..7196ace 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,18 +1,7 @@ import type { Metadata } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; import { Providers } from "@/components/providers"; import "./globals.css"; -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); - export const metadata: Metadata = { title: "Flow", description: @@ -31,7 +20,7 @@ export default function RootLayout({ return ( diff --git a/src/app/styles/base.css b/src/app/styles/base.css index d723619..1cce018 100644 --- a/src/app/styles/base.css +++ b/src/app/styles/base.css @@ -11,6 +11,8 @@ --red: #c2410c; --yellow: #f59e0b; --green: #047857; + --font-geist-sans: "Segoe UI", Arial, Helvetica, sans-serif; + --font-geist-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; --background: var(--flow-background); --foreground: oklch(0.145 0 0); --card: oklch(1 0 0); @@ -165,4 +167,3 @@ button:disabled { @apply font-sans; } } -