Skip to content

Commit

Permalink
log middleware (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie authored Nov 10, 2024
1 parent 88a8aa2 commit f92b7ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/nextjs/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default clerkMiddleware(async (auth, request) => {
[env.NODE_ENV, env.VERCEL_ENV].includes("development") &&
!isPublicRoute(request)
) {
console.log("protecting route", request.url);
await auth.protect();
}
});

0 comments on commit f92b7ad

Please sign in to comment.