From f7b2764714bcb2cae3812b143c9bdb7e1fb4dc79 Mon Sep 17 00:00:00 2001 From: Bastian Masanek Date: Thu, 30 Oct 2025 10:17:30 +0100 Subject: [PATCH] Load Roboto font locally from /public/fonts/roboto/ and update Nuxt configuration to remove external font links --- nuxt.config.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index b149fd2..ae0c5eb 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -7,20 +7,16 @@ export default defineNuxtConfig({ // App configuration app: { head: { + // Roboto font is now loaded locally from /public/fonts/roboto/ + // See @font-face declarations in assets/css/tailwind.css link: [ { - rel: 'preconnect', - href: 'https://fonts.googleapis.com', - }, - { - rel: 'preconnect', - href: 'https://fonts.gstatic.com', + rel: 'preload', + as: 'font', + type: 'font/woff2', + href: '/fonts/roboto/Roboto-VariableFont-latin.woff2', crossorigin: 'anonymous', }, - { - rel: 'stylesheet', - href: 'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap', - }, ], }, },