fix: use local Inter font to avoid Google Fonts timeout in Docker build

The Docker container cannot reach Google Fonts, causing build failures.
Switch to bundled local font file using next/font/local.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-02-28 21:26:34 +01:00
parent 010616be5a
commit 954d21e469
2 changed files with 1460 additions and 2 deletions

View File

@@ -1,8 +1,12 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import localFont from 'next/font/local'
import './globals.css'
const inter = Inter({ subsets: ['latin'] })
const inter = localFont({
src: '../public/fonts/Inter-VariableFont.woff2',
variable: '--font-inter',
display: 'swap',
})
export const metadata: Metadata = {
title: 'BreakPilot Admin Lehrer KI',

File diff suppressed because one or more lines are too long