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
All checks were successful
Continuous Integration / Update Development (push) Successful in 2m27s
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user