mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-12 20:57:42 +02:00
[eric] dev: OPENSWARM_DEV_PORT overrides the dev webpack port so parallel worktrees don't collide on :3000
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user