mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
368 B
17 lines
368 B
import * as Sentry from '@sentry/browser'
|
|
|
|
const sentryDsn = document.querySelector('meta[name="sentry-dsn"]')?.getAttribute('content')
|
|
|
|
if (sentryDsn) {
|
|
Sentry.init({
|
|
dsn: sentryDsn,
|
|
beforeSend (event) {
|
|
if (event.request.url.match(/\/[ds]\/\w+$/)) {
|
|
event.request.url = event.request.url.slice(0, -6)
|
|
}
|
|
|
|
return event
|
|
}
|
|
})
|
|
}
|