diff --git a/src/main.js b/src/main.js index bd7cf5a..2b936af 100644 --- a/src/main.js +++ b/src/main.js @@ -23,27 +23,27 @@ import 'vue-plyr/dist/vue-plyr.css' // integrations: [new Integrations.Vue()], // }); import * as Sentry from "@sentry/vue"; -// import { createSentryPiniaPlugin } from "@sentry/vue"; +import { createSentryPiniaPlugin } from "@sentry/vue"; const app = createApp(App) -// Sentry.init({ -// app, -// dsn: "https://d1780f9da2fc4dd28c9c17cb344a088f@frontlog.figli.io/2", -// integrations: [ -// Sentry.browserTracingIntegration({ router }), -// ], -// tracesSampleRate: 0.01, -// normalizeDepth: 10, // Or however deep you want your state context to be. -// environment: "prod", -// // release : '1' -// release: __SENTRY_RELEASE__ -// }); +Sentry.init({ + app, + dsn: "https://d1780f9da2fc4dd28c9c17cb344a088f@frontlog.figli.io/2", + integrations: [ + Sentry.browserTracingIntegration({ router }), + ], + tracesSampleRate: 0.01, + normalizeDepth: 10, // Or however deep you want your state context to be. + environment: "prod", + // release : '1' + release: __SENTRY_RELEASE__ +}); const pinia = createPinia() pinia.use( ({store}) => { store.router = router } ) -// pinia.use(createSentryPiniaPlugin()); +pinia.use(createSentryPiniaPlugin()); app.use(pinia) app.use(router) diff --git a/vite.config.js b/vite.config.js index 31beeb8..2a539c4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,7 +5,7 @@ import vue from '@vitejs/plugin-vue' import graphql from '@rollup/plugin-graphql'; import { viteRequire } from 'vite-require' import svgLoader from 'vite-svg-loader' -// import { sentryVitePlugin } from "@sentry/vite-plugin"; +import { sentryVitePlugin } from "@sentry/vite-plugin"; import { execSync } from 'child_process' require('dotenv').config(); @@ -30,16 +30,16 @@ export default defineConfig({ } } }), graphql(), viteRequire(), svgLoader({defaultImport: 'raw'}), - // sentryVitePlugin({ - // org: "figures-libres", - // project: "atlas-atterrissage.com", - // authToken: process.env.AUTH_TOKEN, - // release: { - // // name: "ouatterrir", - // name: release - // }, - // url: "https://frontlog.figli.io", - // }) + sentryVitePlugin({ + org: "figures-libres", + project: "atlas-atterrissage.com", + authToken: process.env.AUTH_TOKEN, + release: { + // name: "ouatterrir", + name: release + }, + url: "https://frontlog.figli.io", + }) ], resolve: { alias: { @@ -69,9 +69,9 @@ export default defineConfig({ }, // https://github.com/vitejs/vite/discussions/7920 esbuild: { - // drop: ['console', 'debugger'], + drop: ['console', 'debugger'], }, define: { - // __SENTRY_RELEASE__: JSON.stringify(release), + __SENTRY_RELEASE__: JSON.stringify(release), } })