File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
// This file configures the initialization of Sentry on the client.
2
2
// The config you add here will be used whenever a users loads a page in their browser.
3
3
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
4
- import { CaptureConsole } from '@sentry/integrations' ;
4
+ import { captureConsoleIntegration } from '@sentry/integrations' ;
5
5
import * as Sentry from '@sentry/nextjs' ;
6
6
7
7
Sentry . init ( {
@@ -21,12 +21,9 @@ Sentry.init({
21
21
22
22
// You can remove this option if you're not planning to use the Sentry Session Replay feature:
23
23
integrations : [
24
- new CaptureConsole ( {
24
+ captureConsoleIntegration ( {
25
25
levels : [ 'error' ] ,
26
26
} ) ,
27
- new Sentry . Replay ( {
28
- // Additional Replay configuration goes in here, for example:
29
- maskAllText : true ,
30
- } ) ,
27
+ Sentry . replayIntegration ( ) ,
31
28
] ,
32
29
} ) ;
You can’t perform that action at this time.
0 commit comments