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 <noreply@anthropic.com>
This commit is contained in:
@@ -46,6 +46,11 @@ const copyFiles = {
|
||||
dest: 'public/',
|
||||
rename: { stripBase: 1 },
|
||||
},
|
||||
{
|
||||
src: 'public/fonts',
|
||||
dest: '',
|
||||
rename: { stripBase: 1 },
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user