Turnstile and OTS update

This commit is contained in:
Greg Kilmer
2026-07-11 18:31:58 -04:00
parent 39d775ebe1
commit 67f3fd311f
4 changed files with 18 additions and 30 deletions
+10
View File
@@ -52,6 +52,16 @@ export default defineConfig({
vite: {
plugins: [tailwindcss()],
build: {
// Never inline assets as data URIs. The default (4096 bytes) causes Vite
// to inline the smallest font subsets (e.g. cyrillic-ext woff2) as
// data:font/woff2 base64, which (a) requires data: in font-src and (b)
// triggers Chromium "OTS parsing error: Size of decompressed WOFF 2.0 is
// less than compressed size" warnings on those inlined subsets. Forcing
// every asset to a real file keeps font-src tight at 'self' and avoids
// the OTS parse errors.
assetsInlineLimit: 0,
},
},
server: {