Skip to content

Commit 5d47ade

Browse files
committed
refactor dsn name
1 parent 8b8e067 commit 5d47ade

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

instrumentation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import * as Sentry from "@sentry/nextjs"
22

33
export async function register() {
4-
const dns = process.env.NEXT_PUBLIC_SENTRY_DSN
4+
const dsn = process.env.NEXT_PUBLIC_SENTRY_DSN
55

6-
if (!dns) {
6+
if (!dsn) {
77
console.warn("Sentry DSN not found, skipping")
88
return
99
}
1010

1111
const commonSentryOptions = {
12-
dsn: dns,
12+
dsn,
1313
enabled: process.env.NODE_ENV === "production",
1414
tracesSampleRate: 1.0,
1515
}

sentry.client.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as Sentry from "@sentry/nextjs"
22

3-
const dns = process.env.NEXT_PUBLIC_SENTRY_DSN
3+
const dsn = process.env.NEXT_PUBLIC_SENTRY_DSN
44

55
Sentry.init({
6-
dsn: dns,
6+
dsn,
77
enabled: process.env.NODE_ENV === "production",
88
environment: process.env.NEXT_PUBLIC_CONTEXT,
99
tracesSampleRate: 1.0,

0 commit comments

Comments
 (0)