Skip to content

Commit

Permalink
fix(storybook): when building set node_env (#9390)
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #8403
  • Loading branch information
mandarini committed Mar 18, 2022
1 parent 08c6b02 commit 483115b
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -44,7 +44,13 @@ export default async function buildStorybookExecutor(
}

function runInstance(options: StorybookBuilderOptions): Promise<void> {
return build({ ...options, ci: true });
const env = process.env.NODE_ENV ?? 'production';
process.env.NODE_ENV = env;
return build({
...options,
ci: true,
configType: env.toUpperCase(),
});
}

function storybookOptionMapper(
Expand Down

0 comments on commit 483115b

Please sign in to comment.