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/(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<string> {
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",
|