import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import * as Sentry from '@sentry/react'; import App from './App'; // Initialise Sentry only when a DSN is configured (not in local dev or tests) const sentryDsn = import.meta.env.VITE_SENTRY_DSN; if (sentryDsn) { Sentry.init({ dsn: sentryDsn, environment: import.meta.env.MODE, tracesSampleRate: 0.1, replaysSessionSampleRate: 0.0, replaysOnErrorSampleRate: 1.0, integrations: [ Sentry.browserTracingIntegration(), ], }); } createRoot(document.getElementById('root')!).render( );