Skip to content

Commit

Permalink
fix(ssr-server): minify code result should await
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Nov 26, 2024
1 parent a9569cc commit 1c5cd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/router/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1c5cd04

Please sign in to comment.