File tree 5 files changed +15369
-5666
lines changed
5 files changed +15369
-5666
lines changed Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/nextjs' ;
2
2
3
- export function register ( ) {
4
- if ( process . env . NEXT_RUNTIME === 'nodejs' || process . env . NEXT_RUNTIME === 'edge' ) {
5
- Sentry . init ( {
6
- environment : 'qa' , // dynamic sampling bias to keep transactions
7
- dsn : process . env . SENTRY_DSN ,
8
- includeLocalVariables : true ,
9
- tunnel : `http://localhost:3031/` , // proxy server
10
- tracesSampleRate : 1 ,
11
- } ) ;
3
+ export async function register ( ) {
4
+ if ( process . env . NEXT_RUNTIME === 'nodejs' ) {
5
+ await import ( './sentry.server.config' ) ;
6
+ }
7
+
8
+ if ( process . env . NEXT_RUNTIME === 'edge' ) {
9
+ await import ( './sentry.edge.config' ) ;
12
10
}
13
11
}
Original file line number Diff line number Diff line change 10
10
"lint" : " next lint"
11
11
},
12
12
"dependencies" : {
13
- "@sentry/nextjs" : " 8.0.0-beta.3 " ,
13
+ "@sentry/nextjs" : " 8.9.2 " ,
14
14
"next" : " 14.2.1" ,
15
15
"react" : " ^18" ,
16
16
"react-dom" : " ^18"
Original file line number Diff line number Diff line change
1
+ import * as Sentry from '@sentry/nextjs' ;
2
+
3
+ Sentry . init ( {
4
+ environment : 'qa' , // dynamic sampling bias to keep transactions
5
+ dsn : process . env . SENTRY_DSN ,
6
+ includeLocalVariables : true ,
7
+ tunnel : `http://localhost:3031/` , // proxy server
8
+ tracesSampleRate : 1 ,
9
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import * as Sentry from '@sentry/nextjs' ;
2
+
3
+ Sentry . init ( {
4
+ environment : 'qa' , // dynamic sampling bias to keep transactions
5
+ dsn : process . env . SENTRY_DSN ,
6
+ includeLocalVariables : true ,
7
+ tunnel : `http://localhost:3031/` , // proxy server
8
+ tracesSampleRate : 1 ,
9
+ } ) ;
You can’t perform that action at this time.
0 commit comments