Move desktop dev server to port 5720

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.
This commit is contained in:
ozymandiashh 2026-09-12 12:13:20 +03:00 • committed by iamtoruk
parent 28120c313f
commit 810d91169a
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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 },
})