From 810d91169ab491bcffaa994290687a2610bde41a Mon Sep 17 00:00:00 2001 From: ozymandiashh <234437643+ozymandiashh@users.noreply.github.com> Date: Sat, 12 Sep 2026 12:13:20 +0300 Subject: [PATCH] Move desktop dev server to port 5720 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default 5173 collides with parallel CodeBurn worktree sessions sharing one machine. strictPort stays on so a busy port fails loudly instead of silently drifting; VITE_DEV_SERVER_URL follows the same port in the dev script. Note the port does NOT isolate the Electron userData profile — parallel sessions must still run the app one at a time. --- app/package.json | 2 +- app/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/package.json b/app/package.json index 73a2b27c..3a839200 100644 --- a/app/package.json +++ b/app/package.json @@ -8,7 +8,7 @@ "build:electron": "tsc -p tsconfig.electron.json", "build:renderer": "vite build", "build": "npm run build:electron && npm run build:renderer", - "dev": "npm run build:electron && concurrently -k -n vite,electron -c cyan,magenta \"vite\" \"wait-on tcp:127.0.0.1:5173 && cross-env VITE_DEV_SERVER_URL=http://127.0.0.1:5173 electron .\"", + "dev": "npm run build:electron && concurrently -k -n vite,electron -c cyan,magenta \"vite\" \"wait-on tcp:127.0.0.1:5720 && cross-env VITE_DEV_SERVER_URL=http://127.0.0.1:5720 electron .\"", "test": "vitest run", "typecheck": "tsc --noEmit -p tsconfig.json", "stage-cli": "npm --prefix .. run build:cli && node scripts/stage-cli.mjs", diff --git a/app/vite.config.ts b/app/vite.config.ts index 5504c923..6ee5ee48 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -45,6 +45,6 @@ export default defineConfig({ __BUILD_SHA__: JSON.stringify(stamp.sha), __BUILD_DATE__: JSON.stringify(stamp.date), }, - server: { host: '127.0.0.1', port: 5173, strictPort: true }, + server: { host: '127.0.0.1', port: 5720, strictPort: true }, build: { outDir: '../dist/renderer', emptyOutDir: true }, })