From f8b8fe58920824047f30363477fd4d87107f597d Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Tue, 16 May 2023 19:02:49 -0300 Subject: [PATCH] feat(vite.config.ts): add /version and /health to apiRoutes list. --- src/frontend/vite.config.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index f715e4e5b..39f563827 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -1,7 +1,14 @@ import { defineConfig } from "vite"; 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. const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860";