Skip to content

Dedupe | Sentry for Next.js

Source URL: https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/dedupe

Import name: Sentry.dedupeIntegration

This integration is enabled by default. If you’d like to modify your default integrations, read this.

This integration deduplicates certain events. It can be helpful if you’re receiving many duplicate errors. Note, that Sentry only compares stack traces and fingerprints.

import * as Sentry from "@sentry/browser";
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [Sentry.dedupeIntegration()],
});