(sentry) disable sending of user information

This commit is contained in:
Valentyne Stigloher 2024-03-03 14:24:08 +01:00
parent b0a11cf07c
commit 2927195130

View File

@ -225,13 +225,26 @@ const nuxtConfig: NuxtConfig = {
publishRelease: {
telemetry: false,
},
config: {
beforeSend(event) {
// do not send user information as Sentry somehow automatically detects username, email and user id
// https://docs.sentry.io/platforms/javascript/data-management/sensitive-data/
delete event.user;
return event;
},
beforeSendTransaction(event) {
// see comment on nuxtConfig.sentry.config.beforeSend
delete event.user;
return event;
},
},
},
publicRuntimeConfig: {
...config,
plausible: {
domain: process.env.PLAUSIBLE_DOMAIN || translations.domain,
apiHost: process.env.PLAUSIBLE_API_HOST,
enableAutoPageviews: false, // see previous comment
enableAutoPageviews: false, // see comment on nuxtConfig.plausible.enableAutoPageviews
},
},
watchers: {