Files
omnivore/packages/web/sentry.client.config.ts
Jackson Harper 3299e1e675 Fix sentry config
2024-08-21 21:34:49 +08:00

19 lines
603 B
TypeScript

// 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/
import * as Sentry from '@sentry/nextjs'
import { sentryDSN } from './lib/appConfig'
if (sentryDSN) {
Sentry.init({
dsn: sentryDSN,
// 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,
})
}