diff --git a/surfsense_desktop/src/main.ts b/surfsense_desktop/src/main.ts index 920bde4f1..a2b2f2843 100644 --- a/surfsense_desktop/src/main.ts +++ b/surfsense_desktop/src/main.ts @@ -1,6 +1,7 @@ import { app, BrowserWindow, shell, ipcMain } from 'electron'; import path from 'path'; import { spawn, ChildProcess } from 'child_process'; +import { resolveEnv } from './resolve-env'; const isDev = !app.isPackaged; let mainWindow: BrowserWindow | null = null; @@ -24,6 +25,7 @@ function startNextServer(): Promise { } const standalonePath = getStandalonePath(); + resolveEnv(standalonePath); const serverScript = path.join(standalonePath, 'server.js'); serverProcess = spawn(process.execPath, [serverScript], {