jsoncrack.com/sentry.client.config.ts

22 lines
641 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";
2023-06-18 11:41:10 +03:00
if (process.env.NODE_ENV === "production") {
Sentry.init({
dsn: "https://d3345591295d4dd1b8c579b62003d939@o1284435.ingest.sentry.io/6495191",
tracesSampleRate: 0.2,
debug: false,
release: `${process.env.SENTRY_RELEASE || "production"}`,
2023-08-23 00:05:31 +03:00
allowUrls: ["https://jsoncrack.com/editor"],
2023-06-18 11:41:10 +03:00
replaysOnErrorSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
integrations: [
2023-07-24 18:58:17 +03:00
new Sentry.BrowserTracing(),
2023-06-18 11:41:10 +03:00
new Sentry.Replay({
maskAllText: true,
blockAllMedia: true,
}),
],
});
}