Multiple bug fixing

This commit is contained in:
Julien Nahum
2024-02-10 12:20:45 +01:00
parent f2916b9e31
commit 91911bc6e5
16 changed files with 51 additions and 51 deletions

View File

@@ -1,16 +1,5 @@
import * as Sentry from "@sentry/vue";
async function lazyLoadSentryIntegrations() {
// don't load on server
if (!process.client) return;
const {Replay} = await import("@sentry/vue");
Sentry.addIntegration(new Replay({
maskAllText: false,
blockAllMedia: false,
}));
}
function getSentryIntegrations() {
// don't load on server
if (!process.client) return [];
@@ -65,8 +54,5 @@ export default defineNuxtPlugin({
return event;
},
})
// Lazy-load the replay integration to reduce bundle size
lazyLoadSentryIntegrations()
}
});