19 lines
384 B
TypeScript
19 lines
384 B
TypeScript
import * as Sentry from '@sentry/nextjs'
|
|
|
|
Sentry.init({
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
|
|
tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.1 : 1.0,
|
|
|
|
environment: process.env.NODE_ENV,
|
|
|
|
beforeSend(event, hint) {
|
|
// Don't send events in development
|
|
if (process.env.NODE_ENV === 'development') {
|
|
return null
|
|
}
|
|
return event
|
|
},
|
|
})
|
|
|