Skip to content

Commit 4578572

Browse files
committed
core:frontend:main: Add sentry for offical only
* Only initialize sentry SDK for official releases
1 parent 9a6fd79 commit 4578572

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/frontend/src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ Vue.prototype.$tours = {}
3838
const project = 'BlueOS'
3939
// Avoid logging local development
4040
const version = import.meta.env.VITE_APP_GIT_DESCRIBE
41+
const isOfficialTag = version?.includes('tags/')
4142
const release = `${project}@${version}`.replace('tags/', '').replace(/\//g, ':')
4243
console.info(`Running: ${release}`)
43-
if (version) {
44+
if (version && isOfficialTag) {
4445
Sentry.init({
4546
Vue,
4647
release,

0 commit comments

Comments
 (0)