fix(GRO-1566): bypass auth for /api/health endpoint on UAT #61

Merged
The Dogfather merged 1 commits from fix/gro-1566-api-health-auth-bypass into dev 2026-05-22 22:39:41 +00:00
+1 -1
View File
@@ -23,7 +23,7 @@ if (process.env.AUTH_DISABLED === "true") {
}
export const authMiddleware: MiddlewareHandler = async (c, next) => {
if (c.req.path.startsWith("/api/auth/")) {
if (c.req.path.startsWith("/api/auth/") || c.req.path === "/api/health") {
await next();
return;
}