diff --git a/packages/react/plugins/storybook/index.ts b/packages/react/plugins/storybook/index.ts index ca8b2c40f7..562896ac65 100644 --- a/packages/react/plugins/storybook/index.ts +++ b/packages/react/plugins/storybook/index.ts @@ -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))