Created to test environment variable usage in the Storybook config file.
process.env.NODE_ENVworks as expected withstart-storybookprocess.env.NODE_ENVdoesnt not work as expected withbuild-storybook
@storybook/[email protected] with Babel 7 config.
You can also test the usage of STORYBOOK_BUILD env var with the provided NPM scripts in package.json and the commented out code block in the .storybook/config.js file.