File tree Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ function findClosestElementId(
30
30
Sentry . init ( {
31
31
dsn : process . env . NEXT_PUBLIC_SENTRY_DSN ,
32
32
tracesSampleRate : 0.1 ,
33
+ debug : environment === "development" ,
33
34
environment,
34
35
enabled : environment === "production" ,
35
36
beforeBreadcrumb ( breadcrumb , hint ) {
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ import * as Sentry from "@sentry/nextjs"
2
2
3
3
const environment = process . env . NEXT_PUBLIC_CONTEXT || "development"
4
4
5
- if ( environment === "production" ) {
6
- Sentry . init ( {
7
- dsn : process . env . NEXT_PUBLIC_SENTRY_DSN ,
8
- tracesSampleRate : 0.1 ,
9
- debug : false ,
10
- environment,
11
- } )
12
- }
5
+ Sentry . init ( {
6
+ dsn : process . env . NEXT_PUBLIC_SENTRY_DSN ,
7
+ tracesSampleRate : 0.1 ,
8
+ debug : environment === "development" ,
9
+ environment,
10
+ enabled : environment === "production" ,
11
+ } )
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ import * as Sentry from "@sentry/nextjs"
2
2
3
3
const environment = process . env . NEXT_PUBLIC_CONTEXT || "development"
4
4
5
- if ( environment === "production" ) {
6
- Sentry . init ( {
7
- dsn : process . env . NEXT_PUBLIC_SENTRY_DSN ,
8
- tracesSampleRate : 0.1 ,
9
- debug : false ,
10
- environment,
11
- } )
12
- }
5
+ Sentry . init ( {
6
+ dsn : process . env . NEXT_PUBLIC_SENTRY_DSN ,
7
+ tracesSampleRate : 0.1 ,
8
+ debug : environment === "development" ,
9
+ environment,
10
+ enabled : environment === "production" ,
11
+ } )
You can’t perform that action at this time.
0 commit comments