mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 20:24:18 -04:00
(sentry) disable sending of user information
This commit is contained in:
parent
b0a11cf07c
commit
2927195130
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user