TypeScript
run backend as node
Julius Marminge4fff00c8c3be
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.tsindex a0c9c4692b8..a1f7a9bf213 100644--- a/apps/desktop/src/main.ts+++ b/apps/desktop/src/main.ts@@ -83,7 +83,12 @@ function startBackend(): void {const child = spawn(process.execPath, [BACKEND_ENTRY], {cwd: ROOT_DIR,- env: backendEnv(),+ // In Electron main, process.execPath points to the Electron binary.+ // Run the child in Node mode so this backend process does not become a GUI app instance.+ env: {+ ...backendEnv(),+ ELECTRON_RUN_AS_NODE: "1",+ },stdio: "inherit",});backendProcess = child;