🎨 corrige la modale en prod

pull/1352/head
Johan Girod 2021-01-11 12:09:00 +01:00
parent 582ac16230
commit 935e687373
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
// We disable Speedy mode for Styled-Component in production because it created a bug for overlay appearance
// https://stackoverflow.com/questions/53486470/react-styled-components-stripped-out-from-production-build
global.SC_DISABLE_SPEEDY = true
import 'core-js/stable'
import { hot } from 'react-hot-loader/root'
import { render } from 'react-dom'

View File

@ -1,3 +1,7 @@
// We disable Speedy mode for Styled-Component in production because it created a bug for overlay appearance
// https://stackoverflow.com/questions/53486470/react-styled-components-stripped-out-from-production-build
global.SC_DISABLE_SPEEDY = true
import { hot } from 'react-hot-loader/root'
import 'core-js/stable'
import 'react-hot-loader'

View File

@ -15,4 +15,8 @@ declare namespace NodeJS {
DEEPL_API_SECRET: string
INSEE_SIRENE_API_SECRET: string
}
interface Global {
SC_DISABLE_SPEEDY: boolean
}
}