Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiryous committed Dec 29, 2024
1 parent e36ef5b commit fd01486
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion keep-ui/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const middleware = auth(async (request) => {
}

// Allow all other authenticated requests
console.log("Allowing request to pass through");
console.log("Allowing request to pass through", request.url);
console.log("Request URL: ", request.url);

return NextResponse.next({
Expand All @@ -84,6 +84,18 @@ export const middleware = auth(async (request) => {
// Update the matcher to handle static files and public routes
export const config = {
matcher: [
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - keep_big.svg (logo)
* - gnip.webp (logo)
* - api/aws-marketplace (aws marketplace)
* - api/auth (auth)
* - monitoring (monitoring)
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
*/
"/((?!keep_big\\.svg$|gnip\\.webp|api/aws-marketplace$|api/auth|monitoring|_next/static|_next/image|favicon\\.ico).*)",
],
};

0 comments on commit fd01486

Please sign in to comment.