修改常见默认端口

This commit is contained in:
yml2213
2026-08-04 15:34:34 +08:00
parent 68cf35b272
commit 569109cd92
11 changed files with 46 additions and 34 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ import react from '@vitejs/plugin-react'
export default defineConfig(({ mode }) => {
// 读取 frontend/.env* 与进程环境(start.sh 会注入根目录 .env
const env = loadEnv(mode, process.cwd(), '')
const apiTarget = env.VITE_API_PROXY_TARGET || 'http://localhost:8080'
const port = Number(env.PORT || env.FRONTEND_PORT || 5173)
const apiTarget = env.VITE_API_PROXY_TARGET || 'http://localhost:18080'
const port = Number(env.PORT || env.FRONTEND_PORT || 15173)
return {
plugins: [react()],