Skip to content

Commit 5018c51

Browse files
committed
fix: replace depreciated sentry integrations
1 parent 9987339 commit 5018c51

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

sentry.client.config.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file configures the initialization of Sentry on the client.
22
// The config you add here will be used whenever a users loads a page in their browser.
33
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
4-
import { CaptureConsole } from '@sentry/integrations';
4+
import { captureConsoleIntegration } from '@sentry/integrations';
55
import * as Sentry from '@sentry/nextjs';
66

77
Sentry.init({
@@ -21,12 +21,9 @@ Sentry.init({
2121

2222
// You can remove this option if you're not planning to use the Sentry Session Replay feature:
2323
integrations: [
24-
new CaptureConsole({
24+
captureConsoleIntegration({
2525
levels: ['error'],
2626
}),
27-
new Sentry.Replay({
28-
// Additional Replay configuration goes in here, for example:
29-
maskAllText: true,
30-
}),
27+
Sentry.replayIntegration(),
3128
],
3229
});

0 commit comments

Comments
 (0)