mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-13 21:27:41 +02:00
[eric] electron: OPENSWARM_DEV_URL override so a worktree stack can run its own dev Electron
This commit is contained in:
+2
-1
@@ -1239,7 +1239,8 @@ function createWindow() {
|
||||
});
|
||||
|
||||
if (isDev) {
|
||||
mainWindow.loadURL(`http://localhost:3000`);
|
||||
// OPENSWARM_DEV_URL lets a worktree stack (webpack on an alternate port) run its own Electron.
|
||||
mainWindow.loadURL(process.env.OPENSWARM_DEV_URL || `http://localhost:3000`);
|
||||
} else if (frontendServerPort) {
|
||||
mainWindow.loadURL(`http://127.0.0.1:${frontendServerPort}/index.html`);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user