From 0daf82d9a5b8af3192dd34091d49e8e80d06c97d Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Tue, 14 Oct 2025 10:49:20 +0200 Subject: [PATCH 1/3] fix(nextjs): Remove `debug: false` option from SDK init snippets --- src/nextjs/templates.ts | 6 ------ test/nextjs/templates.test.ts | 33 --------------------------------- 2 files changed, 39 deletions(-) diff --git a/src/nextjs/templates.ts b/src/nextjs/templates.ts index 865f8875d..9f84e0383 100644 --- a/src/nextjs/templates.ts +++ b/src/nextjs/templates.ts @@ -172,9 +172,6 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "${dsn}",${performanceOptions}${logsOptions} - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -232,9 +229,6 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "${dsn}",${integrationsOptions}${performanceOptions}${logsOptions}${replayOptions} - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, diff --git a/test/nextjs/templates.test.ts b/test/nextjs/templates.test.ts index c20863565..9be1cb338 100644 --- a/test/nextjs/templates.test.ts +++ b/test/nextjs/templates.test.ts @@ -48,9 +48,6 @@ describe('Next.js code templates', () => { // Define how likely Replay events are sampled when an error occurs. replaysOnErrorSampleRate: 1.0, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -92,9 +89,6 @@ describe('Next.js code templates', () => { // Define how likely Replay events are sampled when an error occurs. replaysOnErrorSampleRate: 1.0, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -126,9 +120,6 @@ describe('Next.js code templates', () => { // Enable logs to be sent to Sentry enableLogs: true, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -171,9 +162,6 @@ describe('Next.js code templates', () => { // Define how likely Replay events are sampled when an error occurs. replaysOnErrorSampleRate: 1.0, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -209,9 +197,6 @@ describe('Next.js code templates', () => { // Enable logs to be sent to Sentry enableLogs: true, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -240,9 +225,6 @@ describe('Next.js code templates', () => { // Enable logs to be sent to Sentry enableLogs: true, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -274,9 +256,6 @@ describe('Next.js code templates', () => { // Enable logs to be sent to Sentry enableLogs: true, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -305,9 +284,6 @@ describe('Next.js code templates', () => { // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 1, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -342,9 +318,6 @@ describe('Next.js code templates', () => { // Enable logs to be sent to Sentry enableLogs: true, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -374,9 +347,6 @@ describe('Next.js code templates', () => { // Enable logs to be sent to Sentry enableLogs: true, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, @@ -406,9 +376,6 @@ describe('Next.js code templates', () => { // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 1, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - // Enable sending user PII (Personally Identifiable Information) // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii sendDefaultPii: true, From aad8c15b07bbd037714ab6872b3359ab2298be24 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Tue, 14 Oct 2025 10:51:22 +0200 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec9bc120c..e49d9610d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - feat(nuxt): Set `sendDefaultPii: true` by default ([#1060](https://github.com/getsentry/sentry-wizard/pull/1060)) - fix(apple): Remove `options.debug: true` from SDK init snippet ([#1096](https://github.com/getsentry/sentry-wizard/pull/1096)) +- fix(nextjs): Remove `debug: false` option from SDK init snippets ([#1099](https://github.com/getsentry/sentry-wizard/pull/1099)) + ## 6.5.0 From a95460221c100047816a09e596c5c34115c6a955 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Tue, 14 Oct 2025 10:51:49 +0200 Subject: [PATCH 3/3] cl --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e49d9610d..78802dc52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,6 @@ - feat(nextjs): Set `sendDefaultPii: true` by default ([#1052](https://github.com/getsentry/sentry-wizard/pull/1052)) - feat(nuxt): Set `sendDefaultPii: true` by default ([#1060](https://github.com/getsentry/sentry-wizard/pull/1060)) - fix(apple): Remove `options.debug: true` from SDK init snippet ([#1096](https://github.com/getsentry/sentry-wizard/pull/1096)) - - fix(nextjs): Remove `debug: false` option from SDK init snippets ([#1099](https://github.com/getsentry/sentry-wizard/pull/1099))