perf(client): drop unused Sentry session-replay SDK from the client bundle
This commit is contained in:
1 parent
fd8ab7db93
commit
2799b63943
1 file changed
-8
@@ -9,15 +9,7 @@ if (dsn) {
|
|||||||
environment: process.env.NODE_ENV,
|
environment: process.env.NODE_ENV,
|
||||||
release: process.env.NEXT_PUBLIC_APP_VERSION || process.env.APP_VERSION,
|
release: process.env.NEXT_PUBLIC_APP_VERSION || process.env.APP_VERSION,
|
||||||
tracesSampleRate: process.env.NODE_ENV === "production" ? 0.1 : 1.0,
|
tracesSampleRate: process.env.NODE_ENV === "production" ? 0.1 : 1.0,
|
||||||
replaysSessionSampleRate: 0,
|
|
||||||
replaysOnErrorSampleRate: 1.0,
|
|
||||||
enabled: process.env.NODE_ENV === "production",
|
enabled: process.env.NODE_ENV === "production",
|
||||||
integrations: [
|
|
||||||
Sentry.replayIntegration({
|
|
||||||
maskAllText: true,
|
|
||||||
blockAllMedia: true,
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
beforeSend: redactSentryEvent,
|
beforeSend: redactSentryEvent,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user