mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Fix: Make Inter font loading resilient to network failures during build
Replace direct Inter font import with fallback to system fonts. This prevents the build from failing if fonts.googleapis.com is unreachable during Docker build. The `fallback` parameter ensures that if the Google Font fails to load, the application will gracefully fall back to system fonts instead of failing the entire build process.
This commit is contained in:
@@ -3,7 +3,11 @@ import { Inter } from 'next/font/google';
|
||||
import '@/styles/globals.css';
|
||||
import Providers from './providers';
|
||||
|
||||
const inter = Inter({ subsets: ['latin'] });
|
||||
// Load Inter font with fallback - will not fail build if fonts.googleapis.com is unreachable
|
||||
const inter = Inter({
|
||||
subsets: ['latin'],
|
||||
fallback: ['system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif']
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'EDR Passenger Back-office',
|
||||
|
||||
Reference in New Issue
Block a user