Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- feat(nextjs): Set `sendDefaultPii: true` by default ([#1052](https://github.com/getsentry/sentry-wizard/pull/1052))

## 6.5.0

- feat(android): Add Logs step ([#1085](https://github.com/getsentry/sentry-wizard/pull/1085))
Expand Down
8 changes: 8 additions & 0 deletions src/nextjs/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ Sentry.init({

// 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,
});
`;
}
Expand Down Expand Up @@ -230,6 +234,10 @@ Sentry.init({

// 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,
});

export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;`;
Expand Down
44 changes: 44 additions & 0 deletions test/nextjs/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ describe('Next.js code templates', () => {

// 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,
});

export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;"
Expand Down Expand Up @@ -90,6 +94,10 @@ describe('Next.js code templates', () => {

// 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,
});

export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;"
Expand Down Expand Up @@ -120,6 +128,10 @@ describe('Next.js code templates', () => {

// 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,
});

export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;"
Expand Down Expand Up @@ -161,6 +173,10 @@ describe('Next.js code templates', () => {

// 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,
});

export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;"
Expand Down Expand Up @@ -195,6 +211,10 @@ describe('Next.js code templates', () => {

// 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,
});
"
`);
Expand Down Expand Up @@ -222,6 +242,10 @@ describe('Next.js code templates', () => {

// 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,
});
"
`);
Expand Down Expand Up @@ -252,6 +276,10 @@ describe('Next.js code templates', () => {

// 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,
});
"
`);
Expand Down Expand Up @@ -279,6 +307,10 @@ describe('Next.js code templates', () => {

// 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,
});
"
`);
Expand Down Expand Up @@ -312,6 +344,10 @@ describe('Next.js code templates', () => {

// 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,
});
"
`);
Expand Down Expand Up @@ -340,6 +376,10 @@ describe('Next.js code templates', () => {

// 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,
});
"
`);
Expand Down Expand Up @@ -368,6 +408,10 @@ describe('Next.js code templates', () => {

// 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,
});
"
`);
Expand Down
Loading