This commit is contained in:
2026-04-16 18:43:45 +08:00
parent 194f15d954
commit d02c578440
4 changed files with 18 additions and 60 deletions

View File

@@ -10,7 +10,17 @@ export default defineConfig({
},
},
server: {
allowedHosts: ["duooomi.com"]
allowedHosts: ["duooomi.com"],
proxy: {
// Avoid browser CORS by tunneling requests to the upstream API.
// `src/lib/auth-client.ts` uses baseURL `/mixvideo` in dev.
"/mixvideo": {
target: "https://api.mixvideo.bowong.cc",
changeOrigin: true,
secure: true,
rewrite: (path) => path.replace(/^\/mixvideo/, ""),
},
},
},
preview: {
allowedHosts: ["duooomi.com"]