summaryrefslogtreecommitdiff
path: root/packages/bulwark/0001-use-local-google-fonts.patch
blob: 15e93eec9109ad4aaec8487987090ae86310c0a7 (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 ec50f65..6958c60 100644
--- a/app/layout.tsx
+++ b/app/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 } from "next-intl/server";
 import { PWAInstallPrompt } from "@/components/pwa-install-prompt";
@@ -7,15 +6,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 const viewport: Viewport = {
   width: "device-width",