fix(web): update server port configuration to use environment variable (#330)

This commit is contained in:
gsxdsm
2026-02-06 11:15:58 +02:00
committed by GitHub
parent af0dc11773
commit f25d20a61e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -13,8 +13,8 @@
}, },
"scripts": { "scripts": {
"dev": "bun run build:watch", "dev": "bun run build:watch",
"dev:server": "bun server/index.js --port 3001", "dev:server": "bun server/index.js --port ${OPENCHAMBER_PORT:-3001}",
"dev:server:watch": "nodemon --watch server --ext js --exec \"bun server/index.js --port 3001\"", "dev:server:watch": "nodemon --watch server --ext js --exec \"bun server/index.js --port ${OPENCHAMBER_PORT:-3001}\"",
"build": "vite build", "build": "vite build",
"build:watch": "vite build --watch", "build:watch": "vite build --watch",
"type-check": "tsc --noEmit", "type-check": "tsc --noEmit",
+1 -1
View File
@@ -57,7 +57,7 @@ export default defineConfig({
port: 5173, port: 5173,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://127.0.0.1:3001', target: `http://127.0.0.1:${process.env.OPENCHAMBER_PORT || 3001}`,
changeOrigin: true, changeOrigin: true,
}, },
}, },