diff --git a/CHANGELOG.md b/CHANGELOG.md index ec9bc120c..78802dc52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - 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)) ## 6.5.0 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,