Skip to content

Commit

Permalink
move sentry DSN to env variable (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinishi authored Jan 2, 2025
1 parent 6c59719 commit 0d6a4ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as Sentry from '@sentry/nextjs';

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

// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 0.1,
Expand Down
4 changes: 2 additions & 2 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import * as Sentry from '@sentry/nextjs';

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

// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
Expand Down
5 changes: 2 additions & 3 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// The config you add here will be used whenever the server handles a request.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import * as Sentry from '@sentry/nextjs';

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

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

// uncomment the line below to enable Spotlight (https://spotlightjs.com)
// spotlight: process.env.NODE_ENV === 'development',

});

0 comments on commit 0d6a4ce

Please sign in to comment.