From 79f12daf6bc42de80f9b2ed61b1fe09343856356 Mon Sep 17 00:00:00 2001 From: Koochr Date: Thu, 27 Oct 2022 16:35:06 +0100 Subject: [PATCH] Add NO_LAUNCH_NODE mode --- src/node/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node/index.ts b/src/node/index.ts index 5b3c8c7..884509e 100644 --- a/src/node/index.ts +++ b/src/node/index.ts @@ -234,6 +234,10 @@ class Node { if (!this.pingTimeout) { this.pingTimeout = setTimeout(this.ping.bind(this), PING_INTERVAL); } + if (process.env.NO_LAUNCH_NODE === '1') { + this.logger.info('Dashboard is in NO_LAUNCH_NODE mode, skipping node launch'); + return; + } if (!fs.existsSync(await this._getBinFile())) { this.logger.error({ errorType: ErrorsEnum.LAUNCH_ERROR,