jsoncrack.com/sentry.client.config.ts

19 lines
533 B
TypeScript
Raw Normal View History

2023-05-22 11:49:38 +03:00
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from "@sentry/nextjs";
Sentry.init({
enabled: process.env.NODE_ENV === "development",
dsn: "https://d3345591295d4dd1b8c579b62003d939@o1284435.ingest.sentry.io/6495191",
tracesSampleRate: 0.2,
debug: false,
2023-05-29 09:59:24 +03:00
release: `${process.env.SENTRY_RELEASE || "production"}`,
2023-05-22 11:49:38 +03:00
replaysOnErrorSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
integrations: [
new Sentry.Replay({
maskAllText: true,
blockAllMedia: true,
}),
],
});