From 6c70d43c0fc7a82caaf2deaa2b1c2f7e62fe0d1f Mon Sep 17 00:00:00 2001 From: erkelost <1256029807@qq.com> Date: Wed, 25 Dec 2024 11:29:25 +0800 Subject: [PATCH] chore: update app.config --- packages/core/src/server/ws.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/server/ws.ts b/packages/core/src/server/ws.ts index 292ac430f..56678e9b2 100644 --- a/packages/core/src/server/ws.ts +++ b/packages/core/src/server/ws.ts @@ -115,7 +115,7 @@ export class WsServer { */ constructor(private readonly app: any) { this.logger = app.logger ?? new Logger(); - this.serverConfig = app.resolvedUserConfig.server as ServerOptions; + this.serverConfig = app.config.server as ServerOptions; this.createWebSocketServer(); }