1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-27 18:31:07 +00:00

Debug statistics modules in dev mode

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-08-29 16:52:00 +02:00
parent eb7c6d339f
commit d43e7f2c34
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 4 additions and 1 deletions

View file

@ -9,5 +9,6 @@ export const matomo = (environment: any, matomoConfiguration: any) => {
environment.app.use(VueMatomo, {
...matomoConfiguration,
router: environment.router,
debug: import.meta.env.DEV,
});
};

View file

@ -12,12 +12,13 @@ export const sentry = (environment: any, sentryConfiguration: any) => {
Sentry.init({
app: environment.app,
dsn: sentryConfiguration.dsn,
debug: import.meta.env.DEV,
integrations: [
new Integrations.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(
environment.router
),
tracingOrigins: ["localhost", "mobilizon1.com", /^\//],
tracingOrigins: [window.origin, /^\//],
}),
],
beforeSend(event) {
@ -33,6 +34,7 @@ export const sentry = (environment: any, sentryConfiguration: any) => {
// We recommend adjusting this value in production
tracesSampleRate: sentryConfiguration.tracesSampleRate,
release: environment.version,
logErrors: true,
});
};