mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
F: Disable react-scan for production
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
f2570deabe
commit
9c0315f049
|
@ -12,8 +12,6 @@
|
|||
<meta name="google-site-verification" content="bodB0xvBD_xM-VHg7EgfTf87jEMBF1DriZKdrZjwW1k" />
|
||||
<meta name="yandex-verification" content="2b1f1f721cd6b66a" />
|
||||
|
||||
<script src="https://unpkg.com/react-scan/dist/auto.global.js"></script>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
|
|
|
@ -1,10 +1,17 @@
|
|||
import { createRoot } from 'react-dom/client';
|
||||
import { scan } from 'react-scan';
|
||||
|
||||
import { GlobalProviders } from './app/GlobalProviders';
|
||||
import { App } from './app';
|
||||
|
||||
import './index.css';
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
scan({
|
||||
enabled: !!process.env.NODE_ENV && process.env.NODE_ENV === 'development'
|
||||
});
|
||||
}
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<GlobalProviders>
|
||||
<App />
|
||||
|
|
Loading…
Reference in New Issue
Block a user