omnivore/packages/web/sentry.client.config.ts

19 lines
603 B
TypeScript
Raw Permalink Normal View History

2024-08-20 07:39:35 +00:00
// This file configures the initialization of Sentry on the client.
// The config you add here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
2022-02-11 17:24:33 +00:00
import * as Sentry from '@sentry/nextjs'
import { sentryDSN } from './lib/appConfig'
if (sentryDSN) {
Sentry.init({
dsn: sentryDSN,
2024-08-20 07:39:35 +00:00
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
2022-02-11 17:24:33 +00:00
})
}