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:
Stephanos A.
2026-06-02 23:11:31 +03:00
parent 9706000998
commit 36aa824680

View File

@@ -4,7 +4,11 @@ import './globals.css';
import { Providers } from './providers';
import AppHeader from '@/components/AppHeader';
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 Portal - Book Your Train Journey',