From d7d7b59866b024da29740747a05051698bf40288 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 14 Jun 2026 14:17:36 -0400 Subject: [PATCH] fix: add public/fonts to viteStaticCopy targets public/fonts/ (custom-fonts.css + woff2 files) was never listed in the static copy plugin config, so it was absent from every dist build output. The site served HTML instead of CSS for /fonts/custom-fonts.css, causing JetBrains Mono and Fira Code to 404. Adding the target copies the directory to dist/fonts/ where nginx serves it correctly. Co-Authored-By: Claude Sonnet 4.6 --- vite.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vite.config.js b/vite.config.js index 7d778d8f3..675f71b46 100644 --- a/vite.config.js +++ b/vite.config.js @@ -46,6 +46,11 @@ const copyFiles = { dest: 'public/', rename: { stripBase: 1 }, }, + { + src: 'public/fonts', + dest: '', + rename: { stripBase: 1 }, + }, ], };