chore(sentry): disable Sentry in development for edge and server configurations

This commit is contained in:
Fatih Kadir Akın
2026-01-09 19:04:11 +03:00
parent bfc769c14a
commit 7572b3a286
3 changed files with 9 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://9c2eb3b4441745efad28a908001c30bf@o4510673866063872.ingest.de.sentry.io/4510673871306832",
// Disable Sentry in development
enabled: process.env.NODE_ENV === "production",
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,

View File

@@ -7,6 +7,9 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://9c2eb3b4441745efad28a908001c30bf@o4510673866063872.ingest.de.sentry.io/4510673871306832",
// Disable Sentry in development
enabled: process.env.NODE_ENV === "production",
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,

View File

@@ -7,6 +7,9 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://9c2eb3b4441745efad28a908001c30bf@o4510673866063872.ingest.de.sentry.io/4510673871306832",
// Disable Sentry in development
enabled: process.env.NODE_ENV === "production",
// Add optional integrations for additional features
integrations: [Sentry.replayIntegration()],