From 36aa824680a1cdd2f667168edc688b54e2cb24a6 Mon Sep 17 00:00:00 2001 From: "Stephanos A." Date: Tue, 2 Jun 2026 23:11:31 +0300 Subject: [PATCH] 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. --- apps/edr-passenger-web/portal/src/app/layout.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/edr-passenger-web/portal/src/app/layout.tsx b/apps/edr-passenger-web/portal/src/app/layout.tsx index f211626bb..34c12a252 100644 --- a/apps/edr-passenger-web/portal/src/app/layout.tsx +++ b/apps/edr-passenger-web/portal/src/app/layout.tsx @@ -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',