Skip to content

Commit

Permalink
fix(storybook): adjusted STORYBOOK_ (nrwl#11171)
Browse files Browse the repository at this point in the history
Corrected the `STORYBOOK_` RegExp to match documentation
https://storybook.js.org/docs/react/configure/environment-variable
  • Loading branch information
mthines committed Jul 18, 2022
1 parent cc6c2f9 commit edc9ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/plugins/storybook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getClientEnvironment(mode) {
// Grab NODE_ENV and NX_* and STORYBOOK_* environment variables and prepare them to be
// injected into the application via DefinePlugin in webpack configuration.
const NX_PREFIX = /^NX_/i;
const STORYBOOK_PREFIX = /^STORYBOOK__/i;
const STORYBOOK_PREFIX = /^STORYBOOK_/i;

const raw = Object.keys(process.env)
.filter((key) => NX_PREFIX.test(key) || STORYBOOK_PREFIX.test(key))
Expand Down

0 comments on commit edc9ce1

Please sign in to comment.