feat(front): branchement Sentry/GlitchTip du theme mathallo
- @sentry/vue init dans assets/js/main.js, DSN du projet GlitchTip 'mathallo' (glitchtip.figli.io/2), environment dev/prod selon l'hôte - bundle assets/dist/main.js rebuild (Sentry + DSN embarques) - test E2E OK : erreur JS recue dans le projet GlitchTip (issue #3) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -1,5 +1,23 @@
|
||||
// import { createApp } from 'vue'
|
||||
import * as Sentry from '@sentry/vue'
|
||||
import '../scss/main.scss'
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// GlitchTip (compatible Sentry) — projet « mathallo » sur glitchtip.figli.io.
|
||||
// La DSN est une clé publique (client key) : pas un secret, elle est embarquée
|
||||
// dans le bundle front comme dans toute intégration Sentry JS.
|
||||
// Événements envoyés : erreurs JS non capturées, rejets de promesses, et
|
||||
// (si l'app Vue est réactivée) erreurs Vue via errorHandler.
|
||||
// ---------------------------------------------------------------------------
|
||||
const SENTRY_DSN = 'https://98577840dda94253bdbb8f2812974a09@glitchtip.figli.io/2'
|
||||
|
||||
Sentry.init({
|
||||
dsn: SENTRY_DSN,
|
||||
environment: /^(dev\.|.*\.localhost$|localhost$)/.test(window.location.hostname)
|
||||
? 'development'
|
||||
: 'production',
|
||||
sendDefaultPii: false,
|
||||
})
|
||||
// import Content from './vuejs/Content.vue'
|
||||
|
||||
// import REST from './api/rest-axios'
|
||||
|
||||
Reference in New Issue
Block a user