Skip to content

Commit

Permalink
Merge pull request #12997 from toshi1127/feature/add-default-environm…
Browse files Browse the repository at this point in the history
…ent-variable

Core: Add STORYBOOK environment variable
  • Loading branch information
shilman authored Nov 4, 2020
2 parents 84959d1 + 55bbb74 commit 188e52c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/src/server/config/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function loadEnv(
const env: Record<string, string> = {
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)
Expand Down

0 comments on commit 188e52c

Please sign in to comment.