File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -118,10 +118,16 @@ function addServerIntegrations(options: NextjsOptions): void {
118
118
} ) ;
119
119
integrations = addOrUpdateIntegration ( defaultRewriteFramesIntegration , integrations ) ;
120
120
121
- const nativeBehaviourOnUncaughtException = new Integrations . OnUncaughtException ( ) ;
122
- integrations = addOrUpdateIntegration ( nativeBehaviourOnUncaughtException , integrations , {
123
- _options : { exitEvenIfOtherHandlersAreRegistered : false } ,
121
+ const nonExitingWhenOtherHandlersAreRegisteredOnUncaughtExceptionIntegration = new Integrations . OnUncaughtException ( {
122
+ exitEvenIfOtherHandlersAreRegistered : false ,
124
123
} ) ;
124
+ integrations = addOrUpdateIntegration (
125
+ nonExitingWhenOtherHandlersAreRegisteredOnUncaughtExceptionIntegration ,
126
+ integrations ,
127
+ {
128
+ _options : { exitEvenIfOtherHandlersAreRegistered : false } ,
129
+ } ,
130
+ ) ;
125
131
126
132
if ( hasTracingEnabled ( options ) ) {
127
133
const defaultHttpTracingIntegration = new Integrations . Http ( { tracing : true } ) ;
You can’t perform that action at this time.
0 commit comments