chore: 🔨 默认线上接口地址

This commit is contained in:
hxr
2024-02-19 23:29:47 +08:00
parent 91458d8522
commit b3faed84cd

View File

@@ -52,9 +52,9 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
[env.VITE_APP_BASE_API]: { [env.VITE_APP_BASE_API]: {
changeOrigin: true, changeOrigin: true,
// 线上接口地址 // 线上接口地址
// target: "http://vapi.youlai.tech", target: "http://vapi.youlai.tech",
// 开发接口地址 // 开发接口地址
target: "http://localhost:8989", // target: "http://localhost:8989",
rewrite: (path) => rewrite: (path) =>
path.replace(new RegExp("^" + env.VITE_APP_BASE_API), ""), path.replace(new RegExp("^" + env.VITE_APP_BASE_API), ""),
}, },