Fixed glitchtip enable/disable to behave as expected and added support for ENV versioning
All checks were successful
Continuous Integration / Update Development (push) Successful in 2m27s

This commit is contained in:
2025-12-10 00:18:09 -05:00
parent be53fce4a5
commit 4e443cf46d
5 changed files with 21 additions and 10 deletions

View File

@@ -20,10 +20,12 @@ const app = createApp(App)
app.use(createPinia())
app.use(router)
if (!import.meta.env.VITE_DISABLE_GLITCHTIP) {
if (import.meta.env.VITE_DISABLE_GLITCHTIP === "true") {
console.log("Glitchtip disabled");
} else {
let dsn = import.meta.env.VITE_GLITCHTIP_DSN;
let environment = import.meta.env.VITE_ENVIRONMENT;
let release = import.meta.env.VITE_APPLICATION_VERSION;
Sentry.init({
app,
dsn: dsn,
@@ -32,7 +34,7 @@ if (!import.meta.env.VITE_DISABLE_GLITCHTIP) {
],
tracesSampleRate: 0.01,
environment: environment,
release: 'release tag'
release: release
});
}