import { defineConfig } from '@vben/vite-config'; import { loadEnv } from 'vite'; export default defineConfig(async ({ mode }) => { const env = loadEnv(mode, process.cwd()); return { application: {}, vite: { server: { proxy: { [env.VITE_GLOB_API_URL]: { changeOrigin: true, // mock代理目标地址 target: env.VITE_BASE_URL, ws: true, }, }, }, }, }; });