| import { StrictMode } from 'react' |
| import { createRoot } from 'react-dom/client' |
| import './index.css' |
| import App from './App.tsx' |
|
|
| import { AuthProvider } from './context/AuthContext.tsx' |
| import * as Sentry from "@sentry/react"; |
| import { getSentryDsn } from './services/runtimeConfig.ts'; |
|
|
| const sentryDsn = getSentryDsn(); |
| if (sentryDsn) { |
| Sentry.init({ |
| dsn: sentryDsn, |
| integrations: [ |
| Sentry.browserTracingIntegration(), |
| Sentry.replayIntegration(), |
| ], |
| tracesSampleRate: 1.0, |
| replaysSessionSampleRate: 0.1, |
| replaysOnErrorSampleRate: 1.0, |
| }); |
| } |
|
|
| createRoot(document.getElementById('root')!).render( |
| <StrictMode> |
| <AuthProvider> |
| <App /> |
| </AuthProvider> |
| </StrictMode>, |
| ) |
|
|