Added sentry and dev environment warning baner
This commit is contained in:
@@ -8,11 +8,34 @@ import router from './router'
|
||||
import FormCheckbox from './components/form/FormCheckbox.vue'
|
||||
import FormInput from './components/form/FormInput.vue'
|
||||
|
||||
import * as Sentry from "@sentry/vue";
|
||||
|
||||
|
||||
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
|
||||
|
||||
app.use(createPinia())
|
||||
app.use(router)
|
||||
|
||||
if (!!import.meta.env.VITE_DISABLE_GLITCHTIP) {
|
||||
let dsn = import.meta.env.VITE_GLITCHTIP_DSN;
|
||||
let environment = import.meta.env.VITE_ENVIRONMENT;
|
||||
|
||||
Sentry.init({
|
||||
dsn: dsn,
|
||||
integrations: [
|
||||
app,
|
||||
Sentry.browserTracingIntegration({ router }),
|
||||
],
|
||||
tracesSampleRate: 0.01,
|
||||
environment: environment,
|
||||
release: 'release tag'
|
||||
});
|
||||
}
|
||||
|
||||
app.component("FormInput", FormInput)
|
||||
app.component("FormCheckbox", FormCheckbox)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user