refactor: exclude html from compression

This commit is contained in:
Carlos Valente
2024-11-28 18:44:26 +01:00
committed by Carlos Valente
parent 6e51e5083b
commit 85b71627a8
+4 -1
View File
@@ -33,7 +33,10 @@ export default defineConfig({
excludeReplayWorker: true,
},
}),
compression({ algorithm: 'brotliCompress' }),
compression({
algorithm: 'brotliCompress',
exclude: /\.(html)$/, // Exclude HTML files from compression so we can change the base property at runtime
}),
],
server: {
port: 3000,