diff --git a/server.js b/server.js index d5c4ea32..6debe63a 100644 --- a/server.js +++ b/server.js @@ -16,9 +16,6 @@ if (!process.env.BFF_SENTRY_DSN || process.env.BFF_SENTRY_DSN.trim() === '') { } else { Sentry.init({ dsn: process.env.BFF_SENTRY_DSN, - // Setting this option to true will send default PII data to Sentry. - // For example, automatic IP address collection on events - sendDefaultPii: true, environment: process.env.VITE_SENTRY_ENVIRONMENT, beforeSend(event) { if (event.request && event.request.cookies) { diff --git a/src/mount.ts b/src/mount.ts index b7e1445b..74e9e5f5 100644 --- a/src/mount.ts +++ b/src/mount.ts @@ -8,9 +8,6 @@ let sentryRoutes = Routes; if (import.meta.env.VITE_SENTRY_DSN && import.meta.env.VITE_SENTRY_DSN.length > 0) { Sentry.init({ dsn: import.meta.env.VITE_SENTRY_DSN, - // Setting this option to true will send default PII data to Sentry. - // For example, automatic IP address collection on events - sendDefaultPii: true, environment: import.meta.env.VITE_SENTRY_ENVIRONMENT, integrations: [ Sentry.reactRouterV7BrowserTracingIntegration({