repo_description: Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
repo_topics: cms content-management content-management-system express graphql headless headless-cms jamstack javascript mit-license mongodb nextjs nodejs open-source payload payloadcms postgres react typescript
code: import * as Sentry from '@sentry/nextjs'
  const dsn = process.env.NEXT_PUBLIC_SENTRY_DSN
  
  const enabled = !!dsn
  
  Sentry.init({
    dsn,
    enabled,
    skipOpenTelemetrySetup: true,
    tracesSampleRate: 1.0,
  })
  
  if (enabled) {
    // eslint-disable-next-line no-console
    console.log('Sentry inited')
  }
  
  export {}
  