Skip to content

Commit

Permalink
sentry tunneling
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 12, 2024
1 parent eb98b47 commit 932de55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions packages/ui/docs-bundle/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ if (isTruthy(process.env.TRAILING_SLASH)) {
sentryTunnelRoute += "/";
}

if (cdnUri != null) {
sentryTunnelRoute = new URL(sentryTunnelRoute, cdnUri).pathname;
}

module.exports = withSentryConfig(
module.exports,
{
Expand Down
1 change: 1 addition & 0 deletions packages/ui/docs-bundle/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export const config: MiddlewareConfig = {
* Match all requests to posthog
*/
"/api/fern-docs/analytics/posthog/:path*",
"/:prefix*/api/fern-docs/analytics/posthog/:path*",
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
Expand Down

0 comments on commit 932de55

Please sign in to comment.