This commit is contained in:
Will Chen
2025-04-12 22:39:09 -07:00
parent 9f8302a0b8
commit 6ad73b8f2c
3 changed files with 38 additions and 1 deletions

View File

@@ -32,6 +32,11 @@ import { ALLOWED_ENV_VARS } from "../../constants/models";
import { getEnvVar } from "../utils/read_env";
import { readSettings } from "../../main/settings";
import { Worker } from "worker_threads";
import fixPath from "fix-path";
// Needed, otherwise electron in MacOS/Linux will not be able
// to find "npm".
fixPath();
// Keep track of the static file server worker
let staticServerWorker: Worker | null = null;