From 9a1e5e3994652f6c95b8e8e94181e6e37ed58de5 Mon Sep 17 00:00:00 2001 From: Padreug Date: Sat, 2 May 2026 10:10:43 +0200 Subject: [PATCH] chore(dev): pin standalone ports + add dev:all script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed-port assignments for each standalone vite dev server, with strictPort to fail loud if a port is taken (no silent +1 increment that would break the hub's hardcoded VITE_HUB__URL targets): hub 5173 (npm run dev) castle 5180 sortir 5181 (activities) wallet 5182 chat 5183 forum 5184 market 5185 tasks 5186 `npm run dev:all` boots the hub and all 7 standalones concurrently via the existing concurrently devDep. The hub's chakra tiles point at these ports via VITE_HUB__URL in .env.local for end-to-end local testing of the cross-subdomain auth relay. Pure dev infrastructure — no production behaviour change. Co-Authored-By: Claude Opus 4.7 (1M context) --- package.json | 1 + vite.activities.config.ts | 4 ++++ vite.castle.config.ts | 4 ++++ vite.chat.config.ts | 4 ++++ vite.forum.config.ts | 4 ++++ vite.market.config.ts | 4 ++++ vite.tasks.config.ts | 4 ++++ vite.wallet.config.ts | 4 ++++ 8 files changed, 29 insertions(+) diff --git a/package.json b/package.json index 6f5fcb6..f367749 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "dev:forum": "vite --host --config vite.forum.config.ts", "build:forum": "vue-tsc -b && vite build --config vite.forum.config.ts", "preview:forum": "vite preview --host --config vite.forum.config.ts", + "dev:all": "concurrently -n hub,castle,sortir,wallet,chat,forum,market,tasks -c blue,magenta,cyan,yellow,green,blue,red,gray \"npm:dev\" \"npm:dev:castle\" \"npm:dev:activities\" \"npm:dev:wallet\" \"npm:dev:chat\" \"npm:dev:forum\" \"npm:dev:market\" \"npm:dev:tasks\"", "electron:dev": "concurrently \"vite --host\" \"electron-forge start\"", "electron:build": "vue-tsc -b && vite build && electron-builder", "electron:package": "electron-builder", diff --git a/vite.activities.config.ts b/vite.activities.config.ts index 59ad437..5561a70 100644 --- a/vite.activities.config.ts +++ b/vite.activities.config.ts @@ -40,6 +40,10 @@ function activitiesHtmlPlugin(): Plugin { */ export default defineConfig(({ mode }) => ({ base: process.env.VITE_BASE_PATH || '/', + server: { + port: 5181, + strictPort: true, + }, plugins: [ activitiesHtmlPlugin(), vue(), diff --git a/vite.castle.config.ts b/vite.castle.config.ts index c16c2a2..bee4bb0 100644 --- a/vite.castle.config.ts +++ b/vite.castle.config.ts @@ -40,6 +40,10 @@ function castleHtmlPlugin(): Plugin { */ export default defineConfig(({ mode }) => ({ base: process.env.VITE_BASE_PATH || '/', + server: { + port: 5180, + strictPort: true, + }, plugins: [ castleHtmlPlugin(), vue(), diff --git a/vite.chat.config.ts b/vite.chat.config.ts index 0e5c84b..c8bc86b 100644 --- a/vite.chat.config.ts +++ b/vite.chat.config.ts @@ -35,6 +35,10 @@ function chatHtmlPlugin(): Plugin { */ export default defineConfig(({ mode }) => ({ base: process.env.VITE_BASE_PATH || '/', + server: { + port: 5183, + strictPort: true, + }, plugins: [ chatHtmlPlugin(), vue(), diff --git a/vite.forum.config.ts b/vite.forum.config.ts index 1726bb5..dcba841 100644 --- a/vite.forum.config.ts +++ b/vite.forum.config.ts @@ -35,6 +35,10 @@ function forumHtmlPlugin(): Plugin { */ export default defineConfig(({ mode }) => ({ base: process.env.VITE_BASE_PATH || '/', + server: { + port: 5184, + strictPort: true, + }, plugins: [ forumHtmlPlugin(), vue(), diff --git a/vite.market.config.ts b/vite.market.config.ts index 0a90c68..aa82257 100644 --- a/vite.market.config.ts +++ b/vite.market.config.ts @@ -35,6 +35,10 @@ function marketHtmlPlugin(): Plugin { */ export default defineConfig(({ mode }) => ({ base: process.env.VITE_BASE_PATH || '/', + server: { + port: 5185, + strictPort: true, + }, plugins: [ marketHtmlPlugin(), vue(), diff --git a/vite.tasks.config.ts b/vite.tasks.config.ts index fa48d81..b10c4b7 100644 --- a/vite.tasks.config.ts +++ b/vite.tasks.config.ts @@ -35,6 +35,10 @@ function tasksHtmlPlugin(): Plugin { */ export default defineConfig(({ mode }) => ({ base: process.env.VITE_BASE_PATH || '/', + server: { + port: 5186, + strictPort: true, + }, plugins: [ tasksHtmlPlugin(), vue(), diff --git a/vite.wallet.config.ts b/vite.wallet.config.ts index f6f1254..0c108b2 100644 --- a/vite.wallet.config.ts +++ b/vite.wallet.config.ts @@ -39,6 +39,10 @@ function walletHtmlPlugin(): Plugin { */ export default defineConfig(({ mode }) => ({ base: process.env.VITE_BASE_PATH || '/', + server: { + port: 5182, + strictPort: true, + }, plugins: [ walletHtmlPlugin(), vue(),