File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
- import * as Sentry from '@sentry/nextjs' ;
2
-
3
- export function register ( ) {
1
+ export async function register ( ) {
4
2
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 . E2E_TEST_DSN ,
8
- includeLocalVariables : true ,
9
- tunnel : `http://localhost:3031/` , // proxy server
10
- tracesSampleRate : 1 ,
11
- } ) ;
3
+ await import ( './sentry.server.config' ) ;
4
+ // You can also import a `sentry.edge.config` file if you need to have a different configuration for Edge Functions
12
5
}
13
6
}
Original file line number Diff line number Diff line change 9
9
"lint" : " next lint"
10
10
},
11
11
"dependencies" : {
12
- "@sentry/nextjs" : " 8.0.0-beta.1 " ,
12
+ "@sentry/nextjs" : " 8.9.2 " ,
13
13
"@types/node" : " 20.12.7" ,
14
14
"@types/react" : " 18.2.79" ,
15
15
"@types/react-dom" : " 18.2.25" ,
You can’t perform that action at this time.
0 commit comments