diff --git a/packages/core/server/src/gateway/index.ts b/packages/core/server/src/gateway/index.ts index 9f06ab520..75be962b8 100644 --- a/packages/core/server/src/gateway/index.ts +++ b/packages/core/server/src/gateway/index.ts @@ -54,6 +54,9 @@ export class Gateway extends EventEmitter { private constructor() { super(); this.reset(); + if (process.env.SOCKET_PATH) { + this.socketPath = xpipe.eq(resolve(process.cwd(), process.env.SOCKET_PATH)); + } } public static getInstance(options: any = {}): Gateway {