diff --git a/app/(main)/layout.tsx b/app/(main)/layout.tsx index 65d4bba..994727f 100644 --- a/app/(main)/layout.tsx +++ b/app/(main)/layout.tsx @@ -1,5 +1,5 @@ import type { Metadata, Viewport } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; +import localFont from "next/font/local"; import { headers } from "next/headers"; import { getLocale, getTranslations } from "next-intl/server"; import { ServiceWorkerRegistration } from "@/components/service-worker-registration"; @@ -20,15 +20,8 @@ async function resolveRequestLocale(): Promise { return seg ?? (await getLocale()); } -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); +const geistSans = localFont({src: '../Geist-Regular.otf', variable: "--font-geist-sans"}) +const geistMono = localFont({src: '../GeistMono-Regular.otf', variable: "--font-geist-mono"}) export const viewport: Viewport = { width: "device-width",