[dyad] Fixing server error by correcting font loading - wrote 3 file(s), added geist package(s)

This commit is contained in:
[dyad]
2026-01-21 13:25:07 +01:00
parent ef866cb0e5
commit 3fdd48f081
3 changed files with 16 additions and 12 deletions

View File

@@ -42,6 +42,7 @@
"cmdk": "^1.1.1", "cmdk": "^1.1.1",
"date-fns": "^3.6.0", "date-fns": "^3.6.0",
"embla-carousel-react": "^8.6.0", "embla-carousel-react": "^8.6.0",
"geist": "^1.5.1",
"input-otp": "^1.4.2", "input-otp": "^1.4.2",
"lucide-react": "^0.511.0", "lucide-react": "^0.511.0",
"next": "15.3.8", "next": "15.3.8",

12
pnpm-lock.yaml generated
View File

@@ -107,6 +107,9 @@ importers:
embla-carousel-react: embla-carousel-react:
specifier: ^8.6.0 specifier: ^8.6.0
version: 8.6.0(react@19.2.1) version: 8.6.0(react@19.2.1)
geist:
specifier: ^1.5.1
version: 1.5.1(next@15.3.8(react-dom@19.2.1(react@19.2.1))(react@19.2.1))
input-otp: input-otp:
specifier: ^1.4.2 specifier: ^1.4.2
version: 1.4.2(react-dom@19.2.1(react@19.2.1))(react@19.2.1) version: 1.4.2(react-dom@19.2.1(react@19.2.1))(react@19.2.1)
@@ -1503,6 +1506,11 @@ packages:
function-bind@1.1.2: function-bind@1.1.2:
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
geist@1.5.1:
resolution: {integrity: sha512-mAHZxIsL2o3ZITFaBVFBnwyDOw+zNLYum6A6nIjpzCGIO8QtC3V76XF2RnZTyLx1wlDTmMDy8jg3Ib52MIjGvQ==}
peerDependencies:
next: '>=13.2.0'
get-nonce@1.0.1: get-nonce@1.0.1:
resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
engines: {node: '>=6'} engines: {node: '>=6'}
@@ -3507,6 +3515,10 @@ snapshots:
function-bind@1.1.2: {} function-bind@1.1.2: {}
geist@1.5.1(next@15.3.8(react-dom@19.2.1(react@19.2.1))(react@19.2.1)):
dependencies:
next: 15.3.8(react-dom@19.2.1(react@19.2.1))(react@19.2.1)
get-nonce@1.0.1: {} get-nonce@1.0.1: {}
glob-parent@5.1.2: glob-parent@5.1.2:

View File

@@ -1,19 +1,10 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google"; import { GeistSans } from "geist/font/sans";
import { GeistMono } from "geist/font/mono";
import "./globals.css"; import "./globals.css";
import { ThemeProvider } from "@/components/theme-provider"; import { ThemeProvider } from "@/components/theme-provider";
import { Toaster } from "@/components/ui/sonner"; import { Toaster } from "@/components/ui/sonner";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Create Next App", title: "Create Next App",
description: "Generated by create next app", description: "Generated by create next app",
@@ -27,7 +18,7 @@ export default function RootLayout({
return ( return (
<html lang="en" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>
<body <body
className={`${geistSans.variable} ${geistMono.variable} antialiased`} className={`${GeistSans.variable} ${GeistMono.variable} antialiased`}
> >
<ThemeProvider <ThemeProvider
attribute="class" attribute="class"