-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.tsx
35 lines (31 loc) · 1.15 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from 'react';
import ReactDOM from 'react-dom';
import * as Sentry from '@sentry/react';
import '@patternfly/react-core/dist/styles/base.css';
import '@one-platform/opc-nav/dist/opc-nav';
import '@one-platform/opc-menu-drawer/dist/opc-menu-drawer';
import '@one-platform/opc-notification-drawer/dist/opc-notification-drawer';
import '@one-platform/opc-feedback/dist/opc-feedback';
import App from './App';
import pkg from '../package.json';
if (process.env.NODE_ENV === 'production') {
Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
environment: 'production',
release: `idea-hub-spa@${pkg.version}`,
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
}
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
// reportWebVitals();