Debug statistics modules in dev mode
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
eb7c6d339f
commit
d43e7f2c34
@ -9,5 +9,6 @@ export const matomo = (environment: any, matomoConfiguration: any) => {
|
||||
environment.app.use(VueMatomo, {
|
||||
...matomoConfiguration,
|
||||
router: environment.router,
|
||||
debug: import.meta.env.DEV,
|
||||
});
|
||||
};
|
||||
|
@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user