diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 6d5c3a4..63f8d64 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -12,7 +12,7 @@ import basicSsl from '@vitejs/plugin-basic-ssl' // // 代理目标由环境变量 VITE_DEV_BACKEND 控制,默认 http://localhost:8085, // 若后端跑在其他主机/端口(如 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') export default defineConfig({