File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import * as Sentry from "@sentry/nextjs"
2
2
3
3
export async function register ( ) {
4
- const dns = process . env . NEXT_PUBLIC_SENTRY_DSN
4
+ const dsn = process . env . NEXT_PUBLIC_SENTRY_DSN
5
5
6
- if ( ! dns ) {
6
+ if ( ! dsn ) {
7
7
console . warn ( "Sentry DSN not found, skipping" )
8
8
return
9
9
}
10
10
11
11
const commonSentryOptions = {
12
- dsn : dns ,
12
+ dsn,
13
13
enabled : process . env . NODE_ENV === "production" ,
14
14
tracesSampleRate : 1.0 ,
15
15
}
Original file line number Diff line number Diff line change 1
1
import * as Sentry from "@sentry/nextjs"
2
2
3
- const dns = process . env . NEXT_PUBLIC_SENTRY_DSN
3
+ const dsn = process . env . NEXT_PUBLIC_SENTRY_DSN
4
4
5
5
Sentry . init ( {
6
- dsn : dns ,
6
+ dsn,
7
7
enabled : process . env . NODE_ENV === "production" ,
8
8
environment : process . env . NEXT_PUBLIC_CONTEXT ,
9
9
tracesSampleRate : 1.0 ,
You can’t perform that action at this time.
0 commit comments