mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 01:13:55 +00:00
a3bbd74db7
* chore: reduce sentry error logging * chore: version bump * chore: improve test selectors
30 lines
931 B
TypeScript
30 lines
931 B
TypeScript
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
// skipcq: JS-C1003 - sentry does not expose itself as an ES Module.
|
|
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: 0.3,
|
|
release: ONTIME_VERSION,
|
|
enabled: import.meta.env.PROD,
|
|
ignoreErrors: ['top.GLOBALS', 'Unable to preload CSS', 'Failed to fetch dynamically imported module'],
|
|
denyUrls: [/extensions\//i, /^chrome:\/\//i, /^chrome-extension:\/\//i],
|
|
});
|
|
|
|
root.render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|