You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This probably due to mergePlugins function implementation. The function takes the first plugin definition into results. According to the order of plugins the function takes DefinePlugin from storybook and omits the definition produced by CRA webpack config.
Describe the bug
Storybook overrides environment variables defined with prefix
REACT_APP
. Possibly, it overrides more variables, but I don't investigate it.Steps to reproduce the behavior
REACT_APP
prefix.process.env
with variable's object.Expected behavior
List of vars includes my extra
REACT_APP
variableScreenshots and/or logs
After short investigation I found that preset override
DefinePlugin
of cra webpack.config in this lineEnvironment
Details
It works if I use
.env
file, but doesn't if I use cliThe text was updated successfully, but these errors were encountered: