From 59d05b19ccf86f709cd4a8502d146a0ca408d295 Mon Sep 17 00:00:00 2001 From: "Stephanos A." Date: Tue, 2 Jun 2026 23:11:56 +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/backoffice/src/app/layout.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/edr-passenger-web/backoffice/src/app/layout.tsx b/apps/edr-passenger-web/backoffice/src/app/layout.tsx index 669969b60..41dfc3305 100644 --- a/apps/edr-passenger-web/backoffice/src/app/layout.tsx +++ b/apps/edr-passenger-web/backoffice/src/app/layout.tsx @@ -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',