export {}; let Sentry: any = null; try { // Optional dependency for environments without @sentry/nextjs installed. // eslint-disable-next-line @typescript-eslint/no-var-requires Sentry = require("@sentry/nextjs"); } catch { Sentry = null; } if (Sentry && process.env.SENTRY_DSN) { Sentry.init({ dsn: process.env.SENTRY_DSN, tracesSampleRate: 0.2, }); }