feat(vite.config.ts): add /version and /health to apiRoutes list.
This commit is contained in:
parent
5bb9b52571
commit
f8b8fe5892
1 changed files with 8 additions and 1 deletions
|
|
@ -1,7 +1,14 @@
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import react from "@vitejs/plugin-react-swc";
|
import react from "@vitejs/plugin-react-swc";
|
||||||
|
|
||||||
const apiRoutes = ["/all", "/predict", "^/validate/*", "^/chat/*"];
|
const apiRoutes = [
|
||||||
|
"/all",
|
||||||
|
"/predict",
|
||||||
|
"^/validate/*",
|
||||||
|
"^/chat/*",
|
||||||
|
"/version",
|
||||||
|
"/health",
|
||||||
|
];
|
||||||
|
|
||||||
// Use environment variable to determine the target.
|
// Use environment variable to determine the target.
|
||||||
const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860";
|
const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue