From 1c5cd0484636f1415c99c17feb39af2584486ee8 Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 26 Nov 2024 22:15:41 +0800 Subject: [PATCH] fix(ssr-server): minify code result should await Signed-off-by: Innei --- apps/server/src/router/global.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/router/global.ts b/apps/server/src/router/global.ts index e8b145530..255e51aa4 100644 --- a/apps/server/src/router/global.ts +++ b/apps/server/src/router/global.ts @@ -77,7 +77,7 @@ injectEnv({"VITE_API_URL":"${apiUrl}","VITE_EXTERNAL_API_URL":"${apiUrl}","VITE_ reply.type("text/html") reply.send( - minify(document.toString(), { + await minify(document.toString(), { removeComments: true, html5: true, minifyJS: true,