badgen.net/libs/sentry.ts

14 wiersze
240 B
TypeScript
Czysty Zwykły widok Historia

2019-06-03 11:12:23 +00:00
import * as Sentry from '@sentry/node'
import { Dedupe } from '@sentry/integrations'
2019-06-27 01:06:26 +00:00
if (process.env.SENTRY_DSN) {
2019-06-03 11:12:23 +00:00
Sentry.init({
2019-06-27 01:06:26 +00:00
dsn: process.env.SENTRY_DSN,
2019-06-03 11:12:23 +00:00
integrations: [
new Dedupe()
]
})
}
export default Sentry