File tree Expand file tree Collapse file tree 5 files changed +15369
-5666
lines changed Expand file tree Collapse file tree 5 files changed +15369
-5666
lines changed Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/nextjs' ;
22
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' ) ;
1210 }
1311}
Original file line number Diff line number Diff line change 1010 "lint" : " next lint"
1111 },
1212 "dependencies" : {
13- "@sentry/nextjs" : " 8.0.0-beta.3 " ,
13+ "@sentry/nextjs" : " 8.9.2 " ,
1414 "next" : " 14.2.1" ,
1515 "react" : " ^18" ,
1616 "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