🚀 feat(vite.config.ts): add /health route to apiRoutes array
The /health route is added to the apiRoutes array to allow the frontend to check the health of the backend server. This is useful for monitoring and debugging purposes.
This commit is contained in:
parent
010c1b7b50
commit
49e094cd32
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import svgr from "vite-plugin-svgr";
|
||||
const apiRoutes = ["^/api/v1/"];
|
||||
const apiRoutes = ["^/api/v1/", "/health"];
|
||||
|
||||
// Use environment variable to determine the target.
|
||||
const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue