From 08238e9d2517e4587336632039e1d51e30538e1e Mon Sep 17 00:00:00 2001 From: toshi1127 Date: Tue, 3 Nov 2020 20:03:43 +0900 Subject: [PATCH] feat: add default environment variable --- lib/core/src/server/config/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/src/server/config/utils.js b/lib/core/src/server/config/utils.js index 7fb2db2caa23..a40a54ed7f2c 100644 --- a/lib/core/src/server/config/utils.js +++ b/lib/core/src/server/config/utils.js @@ -39,6 +39,7 @@ export function loadEnv(options = {}) { const env = { NODE_ENV: process.env.NODE_ENV || defaultNodeEnv, NODE_PATH: process.env.NODE_PATH || '', + STORYBOOK: process.env.STORYBOOK || 'true', // This is to support CRA's public folder feature. // In production we set this to dot(.) to allow the browser to access these assets // even when deployed inside a subpath. (like in GitHub pages)