Skip to content

Commit 0a196f4

Browse files
fix: Update middleware to exclude /api/healthcheck from auth (#4639)
1 parent 3724a36 commit 0a196f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

keep-ui/middleware.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export const middleware = auth(async (request) => {
5252
!isAuthenticated &&
5353
!pathname.startsWith("/signin") &&
5454
!pathname.startsWith("/health") &&
55-
!pathname.startsWith("/error")
55+
!pathname.startsWith("/error") &&
56+
!pathname.startsWith("/api/healthcheck")
5657
) {
5758
const redirectTo = request.nextUrl.href || "/incidents";
5859
console.log(

0 commit comments

Comments
 (0)