Update src/middleware.ts

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Chris Estreich 2025-05-14 22:14:39 -07:00 • committed by GitHub
parent bbffb234af
commit 7c89c68a12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ export default clerkMiddleware(
await auth.protect();
}
},
{ debug: true },
{ debug: process.env.NODE_ENV !== "production" },
);
// Also exclude tunnelRoute used in Sentry from the matcher.