mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 00:43:54 +00:00
70cc071425
* feat: integrations and lifecycles * refactor: prevent issues with start order
27 lines
682 B
TypeScript
27 lines
682 B
TypeScript
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import * as Sentry from '@sentry/react';
|
|
import { BrowserTracing } from '@sentry/tracing';
|
|
|
|
import App from './App';
|
|
import { ONTIME_VERSION } from './ONTIME_VERSION';
|
|
|
|
import './index.scss';
|
|
|
|
const container = document.getElementById('root');
|
|
const root = createRoot(container as Element);
|
|
|
|
Sentry.init({
|
|
dsn: 'https://5e4d2c4b57ab409cb98d4c08b2014755@o4504288369836032.ingest.sentry.io/4504288371343360',
|
|
integrations: [new BrowserTracing()],
|
|
tracesSampleRate: 1.0,
|
|
release: ONTIME_VERSION,
|
|
enabled: import.meta.env.PROD,
|
|
});
|
|
|
|
root.render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|