From 49e094cd32625b315bea2295c5029e326f6df435 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 14 Jun 2023 14:56:52 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat(vite.config.ts):=20add=20/h?= =?UTF-8?q?ealth=20route=20to=20apiRoutes=20array=20The=20/health=20route?= =?UTF-8?q?=20is=20added=20to=20the=20apiRoutes=20array=20to=20allow=20the?= =?UTF-8?q?=20frontend=20to=20check=20the=20health=20of=20the=20backend=20?= =?UTF-8?q?server.=20This=20is=20useful=20for=20monitoring=20and=20debuggi?= =?UTF-8?q?ng=20purposes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index 14b330aeb..40cd6af0f 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -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";