Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 0876ea4

Browse files
committed
Init compress asynchronously
1 parent 5cf9fd7 commit 0876ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/stdserver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function serve({ app, port, hostname, certFile, keyFile, signal }:
3939
(s as StdServer).close()
4040
})
4141
if (!app.isDev && app.config.compress) {
42-
await compress.init()
42+
compress.init()
4343
}
4444
log.info(`Server ready on http://${hostname || 'localhost'}:${port}${app.config.basePath}`)
4545
for await (const r of s) {

0 commit comments

Comments
 (0)