This commit is contained in:
zhangkai
2024-10-15 12:17:14 +08:00
parent 2408d980e5
commit e8279a2deb
7 changed files with 128 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ import path from "path";
// Use environment variable to determine the target.
// const target = process.env.VITE_PROXY_TARGET || "http://localhost:7860";
const target = process.env.VITE_PROXY_TARGET || "http://npcall.ai:3003";
// const target = process.env.VITE_PROXY_TARGET || "http://172.30.40.241:7866";
// const target = process.env.VITE_PROXY_TARGET || "http://172.30.96.205:7880";
const proxyTargets = apiRoutes.reduce((proxyObj, route) => {
proxyObj[route] = {