fix(web): 离线/内网环境改用系统字体,避免构建时联网下载 Google 字体

This commit is contained in:
selfrelease
2026-06-16 23:28:43 +08:00
parent 247da7b43c
commit 654d99c5e9
2 changed files with 15 additions and 7 deletions
+5 -7
View File
@@ -1,18 +1,16 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { Providers } from "@/components/providers";
import { Toaster } from "@/components/ui/sonner";
import "./globals.css";
const geistSans = Geist({
// 使用系统字体,避免构建时联网下载 Google 字体(内网/离线环境)
const geistSans = {
variable: "--font-geist-sans",
subsets: ["latin"],
});
};
const geistMono = Geist_Mono({
const geistMono = {
variable: "--font-geist-mono",
subsets: ["latin"],
});
};
export const metadata: Metadata = {
title: "AI智能应用平台",