更新 frontend/vite.config.js
This commit is contained in:
@@ -12,7 +12,7 @@ import basicSsl from '@vitejs/plugin-basic-ssl'
|
|||||||
//
|
//
|
||||||
// 代理目标由环境变量 VITE_DEV_BACKEND 控制,默认 http://localhost:8085,
|
// 代理目标由环境变量 VITE_DEV_BACKEND 控制,默认 http://localhost:8085,
|
||||||
// 若后端跑在其他主机/端口(如 docker 主机)可自行覆盖。
|
// 若后端跑在其他主机/端口(如 docker 主机)可自行覆盖。
|
||||||
const BACKEND = process.env.VITE_DEV_BACKEND || 'http://localhost:8085'
|
const BACKEND = process.env.VITE_DEV_BACKEND || 'http://yl.z64.cn:8085'
|
||||||
const BACKEND_WS = BACKEND.replace(/^http/, 'ws')
|
const BACKEND_WS = BACKEND.replace(/^http/, 'ws')
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|||||||
Reference in New Issue
Block a user