blob: 27b8b2e4625714f2bca94d04c42b07b10ecf92ca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// This file configures the initialization of Sentry on the browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from "@sentry/nextjs";
Sentry.init({
environment: process.env.NEXT_PUBLIC_VERCEL_ENV,
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
ignoreUrls: [
// Chrome extensions
/extensions\//i,
/^chrome:\/\//i,
],
});
|