Skip to content

Commit

Permalink
added client side monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
amykapernick committed Jul 5, 2024
1 parent 7c13d3d commit 6c905e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = withSentryConfig(
// This can increase your server load as well as your hosting bill.
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
// tunnelRoute: "/monitoring",
tunnelRoute: "/monitoring",

// Hides source maps from generated client bundles
hideSourceMaps: true,
Expand Down
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export default clerkMiddleware((auth, req) =>
});

export const config = {
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'],
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)', '(?!monitoring-tunnel)'],
};

0 comments on commit 6c905e7

Please sign in to comment.