This commit is contained in:
yziiy
2025-09-02 15:17:59 +08:00
parent 6515a343b4
commit 61e604b12c
2 changed files with 3 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
export const URL = "http://tmd.xscmmidi.site";
export const URL = "http://md.xscmmidi.site";
// http://md.xscmmidi.site 正式
// http://tmd.xscmmidi.site 测试
// 声网appId 在这里换

View File

@@ -1,6 +1,7 @@
import { getPluginsList } from "./build/plugins";
import { include, exclude } from "./build/optimize";
import { type UserConfigExport, type ConfigEnv, loadEnv } from "vite";
import { URL } from "@/utils/http/config";
import {
root,
alias,
@@ -25,11 +26,9 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
host: "0.0.0.0",
// 本地跨域代理 https://cn.vitejs.dev/config/server-options.html#server-proxy
proxy: {
// tmd.xscmmidi.site 测试API
// md.xscmmidi.site 正式API
"/adminapi": {
// 这里填写后端地址
target: "http://tmd.xscmmidi.site",
target: URL,
changeOrigin: true
}
},