From 8282328b770d67f719817f91eca0a1effbec14e9 Mon Sep 17 00:00:00 2001 From: Louis Le Date: Wed, 7 Aug 2024 13:09:49 +0700 Subject: [PATCH] fix: env does not work after bundled in an electron app --- cortex-js/src/usecases/cortex/cortex.usecases.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cortex-js/src/usecases/cortex/cortex.usecases.ts b/cortex-js/src/usecases/cortex/cortex.usecases.ts index 01bf1ed09..573a9db00 100644 --- a/cortex-js/src/usecases/cortex/cortex.usecases.ts +++ b/cortex-js/src/usecases/cortex/cortex.usecases.ts @@ -152,6 +152,7 @@ export class CortexUsecases implements BeforeApplicationShutdown { CORTEX_JS_HOST: host, CORTEX_JS_PORT: port.toString(), CORTEX_PROFILE: fileManagerService.getConfigProfile(), + ...process.env, }, }); server.disconnect(); // closes the IPC channel