This commit is contained in:
zhangkai
2024-07-16 13:34:21 +08:00
parent a71c43fa9a
commit 5199dbb6e5
4 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ const apiRoutes = ["^/api/", "/health"];
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:3101";
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 proxyTargets = apiRoutes.reduce((proxyObj, route) => {