修改常见默认端口
This commit is contained in:
@@ -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()],
|
||||
|
||||
Reference in New Issue
Block a user