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:56 +03:00
parent 36aa824680
commit 59d05b19cc

View File

@@ -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',