🚀 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:
Gabriel Luiz Freitas Almeida 2023-06-14 14:56:52 -03:00
commit 49e094cd32

View file

@ -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";