[eric] dev: OPENSWARM_DEV_PORT overrides the dev webpack port so parallel worktrees don't collide on :3000

This commit is contained in:
ciregenz
2026-07-19 18:52:46 -07:00
parent 8b9eff4104
commit 56db0394a7
+2 -1
View File
@@ -1209,7 +1209,8 @@ function createWindow() {
});
if (isDev) {
mainWindow.loadURL(`http://localhost:3000`);
// Dev only: OPENSWARM_DEV_PORT lets a second worktree's Electron point at its own webpack-dev-server (default 3000) instead of colliding on the shared port. Packaged builds never hit this branch.
mainWindow.loadURL(`http://localhost:${process.env.OPENSWARM_DEV_PORT || 3000}`);
} else if (frontendServerPort) {
mainWindow.loadURL(`http://127.0.0.1:${frontendServerPort}/index.html`);
} else {