Skip to content

Commit

Permalink
fix: filter out NEXT_NOT_FOUND errors before reporting to sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Nov 24, 2024
1 parent 8ea425e commit 52d8d4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
debug: false,
dsn: "https://f17ca144b3c50570ee2deeac2c4cc132@o4504360778661888.ingest.us.sentry.io/4507129666338816",
ignoreErrors: ["NEXT_NOT_FOUND"],
integrations: [
Sentry.replayIntegration({
blockAllMedia: true,
Expand Down
1 change: 1 addition & 0 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
debug: false,
dsn: "https://f17ca144b3c50570ee2deeac2c4cc132@o4504360778661888.ingest.us.sentry.io/4507129666338816",
ignoreErrors: ["NEXT_NOT_FOUND"],
tracesSampleRate: 1,
});
1 change: 1 addition & 0 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
debug: false,
dsn: "https://f17ca144b3c50570ee2deeac2c4cc132@o4504360778661888.ingest.us.sentry.io/4507129666338816",
ignoreErrors: ["NEXT_NOT_FOUND"],
tracesSampleRate: 1,
});

0 comments on commit 52d8d4b

Please sign in to comment.