ci: run e2e on alternate ports (3100/3101) to avoid collision with prod stack on host runner
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --port 3000",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"typecheck": "tsc --noEmit"
|
||||
|
||||
@@ -10,14 +10,14 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
port: parseInt(process.env.VITE_PORT || "3000", 10),
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:3001",
|
||||
target: process.env.API_PROXY_TARGET || "http://localhost:3001",
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/mcp": {
|
||||
target: "http://localhost:3001",
|
||||
target: process.env.API_PROXY_TARGET || "http://localhost:3001",
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user