diff --git a/apps/api/v1/instrumentation.ts b/apps/api/v1/instrumentation.ts index f3f5932bbd..79040c9dbb 100644 --- a/apps/api/v1/instrumentation.ts +++ b/apps/api/v1/instrumentation.ts @@ -4,8 +4,6 @@ export function register() { if (process.env.NEXT_RUNTIME === "nodejs") { Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, - // reduce sample rate to 10% on production - tracesSampleRate: process.env.NODE_ENV !== "production" ? 1.0 : 0.1, }); } diff --git a/apps/web/instrumentation.ts b/apps/web/instrumentation.ts index f3f5932bbd..79040c9dbb 100644 --- a/apps/web/instrumentation.ts +++ b/apps/web/instrumentation.ts @@ -4,8 +4,6 @@ export function register() { if (process.env.NEXT_RUNTIME === "nodejs") { Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, - // reduce sample rate to 10% on production - tracesSampleRate: process.env.NODE_ENV !== "production" ? 1.0 : 0.1, }); } diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 289c645ec1..4587fd03a0 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -221,6 +221,13 @@ const nextConfig = { ); } + config.plugins.push( + new webpack.DefinePlugin({ + __SENTRY_DEBUG__: false, + __SENTRY_TRACING__: false, + }) + ); + config.plugins.push( new CopyWebpackPlugin({ patterns: [