fix: remove font-sans class override — restore Fira Sans #6
@@ -2,10 +2,9 @@ import type { Metadata } from 'next';
|
||||
import './globals.css';
|
||||
import Providers from '@/components/providers';
|
||||
|
||||
// Fonts are loaded via Google Fonts CDN link in globals.css
|
||||
// to avoid build-time network dependency in Docker builds
|
||||
const firaSans = { variable: '--font-fira-sans', className: 'font-sans' };
|
||||
const firaCode = { variable: '--font-fira-code', className: 'font-mono' };
|
||||
// next/font/google downloads at build time — fails in Docker (no outbound internet).
|
||||
// Fonts are loaded via CSS @import in globals.css (runtime CDN load).
|
||||
// CSS vars are set directly in globals.css :root — no JS injection needed.
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'FiberOps Admin',
|
||||
@@ -15,7 +14,7 @@ export const metadata: Metadata = {
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={`${firaSans.variable} ${firaCode.variable} ${firaSans.className}`}>
|
||||
<body>
|
||||
<Providers>{children}</Providers>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user