ENGLISH·COURSE API
    Preparing search index...
    • Decides whether Sentry starts, and with what.

      Parameters

      • dsn: string | undefined

        The project DSN, if one is configured

      Returns SentryInitOptions | null

      The init options, or null when Sentry must stay off

      Error reporting only: no tracing and no session replay, so the options leave every sample rate out. Without a DSN nothing starts, which keeps local development, CI and a build without Sentry variables silent.

      const options = sentryInitOptions(process.env.SENTRY_DSN);
      if (options) Sentry.init(options);