fix(mining-admin-web): 移除 Google Fonts 依赖,改用系统字体

服务器构建时无法访问 fonts.googleapis.com(ETIMEDOUT),
导致 next build 失败。移除 next/font/google 的 Inter 引入,
直接使用 Tailwind 默认系统字体栈(-apple-system, BlinkMacSystemFont,
Segoe UI, Roboto 等),无需网络请求,离线构建完全可用。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-09 23:25:20 -07:00
parent d6e4dd58c7
commit e7d852e25e
1 changed files with 1 additions and 4 deletions

View File

@ -1,10 +1,7 @@
import type { Metadata } from 'next'; import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import './globals.css'; import './globals.css';
import { Providers } from './providers'; import { Providers } from './providers';
const inter = Inter({ subsets: ['latin'] });
export const metadata: Metadata = { export const metadata: Metadata = {
title: '挖矿管理后台', title: '挖矿管理后台',
description: '榴莲生态挖矿系统管理后台', description: '榴莲生态挖矿系统管理后台',
@ -17,7 +14,7 @@ export default function RootLayout({
}) { }) {
return ( return (
<html lang="zh-CN" suppressHydrationWarning> <html lang="zh-CN" suppressHydrationWarning>
<body className={inter.className}> <body>
<Providers>{children}</Providers> <Providers>{children}</Providers>
</body> </body>
</html> </html>