Fix: Mapping Vite ports based on .env value

This commit is contained in:
2026-08-26 17:59:13 +03:00
parent 092fab8740
commit 50c9670f2a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -137,10 +137,10 @@ services:
working_dir: /app
command: npm run dev
ports:
- "${VITE_PORT:-5173}:5173"
- "${VITE_PORT:-5174}:${VITE_PORT:-5174}"
environment:
- NODE_ENV=development
- VITE_PORT=${VITE_PORT:-5173}
- VITE_PORT=${VITE_PORT:-5174}
volumes:
- .:/app
- /app/node_modules
+1 -1
View File
@@ -17,7 +17,7 @@ export default defineConfig({
],
server: {
host: "0.0.0.0",
port: 5174,
port: process.env.VITE_PORT || 5174,
strictPort: true,
cors: true,
hmr: {