mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-12 05:48:57 +00:00
16 lines
309 B
TypeScript
16 lines
309 B
TypeScript
import * as Sentry from '@sentry/nextjs';
|
|
|
|
const dsn = process.env.SENTRY_DSN;
|
|
if (dsn) {
|
|
Sentry.init({
|
|
debug: false,
|
|
dsn,
|
|
integrations: [],
|
|
sampleRate: 0.1,
|
|
enableTracing: false,
|
|
beforeSendTransaction: () => {
|
|
return null;
|
|
},
|
|
});
|
|
}
|