File tree 3 files changed +32
-14
lines changed
dev-packages/e2e-tests/test-applications/nextjs-15
3 files changed +32
-14
lines changed Original file line number Diff line number Diff line change 1
- import * as Sentry from '@sentry/nextjs' ;
1
+ export async function register ( ) {
2
+ if ( process . env . NEXT_RUNTIME === 'nodejs' ) {
3
+ await import ( './sentry.server.config' ) ;
4
+ }
2
5
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 . NEXT_PUBLIC_E2E_TEST_DSN ,
8
- tunnel : `http://localhost:3031/` , // proxy server
9
- tracesSampleRate : 1.0 ,
10
- sendDefaultPii : true ,
11
- transportOptions : {
12
- // We are doing a lot of events at once in this test
13
- bufferSize : 1000 ,
14
- } ,
15
- } ) ;
6
+ if ( process . env . NEXT_RUNTIME === 'edge' ) {
7
+ await import ( './sentry.edge.config' ) ;
16
8
}
17
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 . NEXT_PUBLIC_E2E_TEST_DSN ,
6
+ tunnel : `http://localhost:3031/` , // proxy server
7
+ tracesSampleRate : 1.0 ,
8
+ sendDefaultPii : true ,
9
+ transportOptions : {
10
+ // We are doing a lot of events at once in this test
11
+ bufferSize : 1000 ,
12
+ } ,
13
+ } ) ;
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 . NEXT_PUBLIC_E2E_TEST_DSN ,
6
+ tunnel : `http://localhost:3031/` , // proxy server
7
+ tracesSampleRate : 1.0 ,
8
+ sendDefaultPii : true ,
9
+ transportOptions : {
10
+ // We are doing a lot of events at once in this test
11
+ bufferSize : 1000 ,
12
+ } ,
13
+ } ) ;
You can’t perform that action at this time.
0 commit comments