summaryrefslogtreecommitdiff
path: root/packages/bulwark/0001-use-local-google-fonts.patch
blob: 0bae8c047063ff3cfaa003979f9047d64d5bae74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/app/layout.tsx b/app/layout.tsx
index 573ed32..e5b1edc 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,5 +1,5 @@
 import type { Metadata } from "next";
-import { Geist, Geist_Mono } from "next/font/google";
+import localFont from "next/font/local";
 import { headers } from "next/headers";
 import { getLocale } from "next-intl/server";
 import { PWAInstallPrompt } from "@/components/pwa-install-prompt";
@@ -7,15 +7,8 @@ import { ServiceWorkerRegistration } from "@/components/service-worker-registrat
 import { configManager } from "@/lib/admin/config-manager";
 import "./globals.css";
 
-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 async function generateMetadata(): Promise<Metadata> {
   await configManager.ensureLoaded();