expose sentry to extensions

This commit is contained in:
bymyself
2025-09-18 21:16:42 -07:00
parent 504aabd097
commit 168e885d50
2 changed files with 7 additions and 13 deletions

View File

@@ -1,13 +0,0 @@
import * as Sentry from '@sentry/vue'
import { app } from '../../../scripts/app'
app.registerExtension({
name: 'Comfy.Cloud.Sentry',
onAuthUserResolved: (user, _app) => {
// https://docs.sentry.io/platforms/javascript/apis/#setUser
Sentry.setUser({
id: user.id
})
}
})