F: Disable react-scan for production
This commit is contained in:
parent
12ddc007ac
commit
32b34ff0ed
|
@ -12,8 +12,6 @@
|
||||||
<meta name="google-site-verification" content="bodB0xvBD_xM-VHg7EgfTf87jEMBF1DriZKdrZjwW1k" />
|
<meta name="google-site-verification" content="bodB0xvBD_xM-VHg7EgfTf87jEMBF1DriZKdrZjwW1k" />
|
||||||
<meta name="yandex-verification" content="2b1f1f721cd6b66a" />
|
<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.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link
|
<link
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
|
import { scan } from 'react-scan';
|
||||||
|
|
||||||
import { GlobalProviders } from './app/GlobalProviders';
|
import { GlobalProviders } from './app/GlobalProviders';
|
||||||
import { App } from './app';
|
import { App } from './app';
|
||||||
|
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
scan({
|
||||||
|
enabled: !!process.env.NODE_ENV && process.env.NODE_ENV === 'development'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
createRoot(document.getElementById('root')!).render(
|
createRoot(document.getElementById('root')!).render(
|
||||||
<GlobalProviders>
|
<GlobalProviders>
|
||||||
<App />
|
<App />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user