diff --git a/Caddyfile b/Caddyfile index b277ebc..fe55ec3 100644 --- a/Caddyfile +++ b/Caddyfile @@ -12,8 +12,7 @@ try_files {path} /index.html file_server { - # TODO: 由于 Bun 标准库实现问题,暂时禁用 Brotli 压缩 - precompressed gzip + precompressed br gzip } } diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index c6b098d..a91a0a9 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -56,11 +56,10 @@ export default defineConfig({ }, }), compression({ algorithm: "gzip" }), - // TODO: 由于 Bun 标准库实现问题,暂时禁用 Brotli 压缩 - // compression({ - // algorithm: "brotliCompress", - // ext: ".br", - // }), + compression({ + algorithm: "brotliCompress", + ext: ".br", + }), ], server: { proxy: {