Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

544 B
Raw Blame
import * as Sentry from "@sentry/nextjs";

const dsn = process.env.NEXT_PUBLIC_SENTRY_DSN;

if (dsn) {
	Sentry.init({
		dsn,
		sendDefaultPii: false,
		tracesSampleRate: 0,
		replaysSessionSampleRate: 0,
		replaysOnErrorSampleRate: 0,
		maxBreadcrumbs: 30,
		denyUrls: [/^(?:chrome|moz|safari(?:-web)?)-extension:\/\//i],
		integrations: (integrations) =>
			integrations.filter(
				({ name }) => name !== "BrowserTracing" && name !== "BrowserSession",
			),
	});
}

export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;