feat : add sentry
This commit is contained in:
22
sentry.client.config.ts
Normal file
22
sentry.client.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import * as Sentry from "@sentry/nextjs";
|
||||
|
||||
if (
|
||||
process.env.NEXT_PUBLIC_SENTRY_DSN &&
|
||||
document.location.hostname !== "localhost"
|
||||
) {
|
||||
Sentry.init({
|
||||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
||||
environment: "production",
|
||||
integrations: [
|
||||
Sentry.replayIntegration({
|
||||
maskAllText: false,
|
||||
maskAllInputs: false,
|
||||
blockAllMedia: false,
|
||||
}),
|
||||
],
|
||||
tracesSampleRate: 1,
|
||||
replaysSessionSampleRate: 0,
|
||||
replaysOnErrorSampleRate: 1.0,
|
||||
debug: false,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user