Skip to content

Commit 47c5350

Browse files
authored
move sentry DSN to env variable (#9)
1 parent 837dca5 commit 47c5350

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

sentry.client.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import * as Sentry from '@sentry/nextjs';
66

77
Sentry.init({
8-
dsn: 'https://c25e0f77069805e271e110773a67be7a@o4505001794404352.ingest.us.sentry.io/4507246358364160',
8+
dsn: process.env.SENTRY_DSN,
99

1010
// Adjust this value in production, or use tracesSampler for greater control
1111
tracesSampleRate: 0.1,

sentry.edge.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.
44
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
55

6-
import * as Sentry from "@sentry/nextjs";
6+
import * as Sentry from '@sentry/nextjs';
77

88
Sentry.init({
9-
dsn: "https://c25e0f77069805e271e110773a67be7a@o4505001794404352.ingest.us.sentry.io/4507246358364160",
9+
dsn: process.env.SENTRY_DSN,
1010

1111
// Adjust this value in production, or use tracesSampler for greater control
1212
tracesSampleRate: 1,

sentry.server.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// The config you add here will be used whenever the server handles a request.
33
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
44

5-
import * as Sentry from "@sentry/nextjs";
5+
import * as Sentry from '@sentry/nextjs';
66

77
Sentry.init({
8-
dsn: "https://c25e0f77069805e271e110773a67be7a@o4505001794404352.ingest.us.sentry.io/4507246358364160",
8+
dsn: process.env.SENTRY_DSN,
99

1010
// Adjust this value in production, or use tracesSampler for greater control
1111
tracesSampleRate: 1,
@@ -15,5 +15,4 @@ Sentry.init({
1515

1616
// uncomment the line below to enable Spotlight (https://spotlightjs.com)
1717
// spotlight: process.env.NODE_ENV === 'development',
18-
1918
});

0 commit comments

Comments
 (0)