Skip to content

Commit

Permalink
Merge pull request #481 from kadirahq/config-env
Browse files Browse the repository at this point in the history
Remove STORYBOOK_ prefix from config env vars
  • Loading branch information
Muhammed Thanish authored Sep 23, 2016
2 parents 859a7e3 + 789a40d commit db6b04e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/server/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ program
// The key is the field created in `program` variable for
// each command line argument. Value is the env variable.
getEnvConfig(program, {
staticDir: 'STORYBOOK_STATIC_DIR',
outputDir: 'STORYBOOK_OUTPUT_DIR',
configDir: 'STORYBOOK_CONFIG_DIR',
staticDir: 'STATIC_DIR',
outputDir: 'OUTPUT_DIR',
configDir: 'CONFIG_DIR',
});

const configDir = program.configDir || './.storybook';
Expand Down
10 changes: 5 additions & 5 deletions src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ program
// The key is the field created in `program` variable for
// each command line argument. Value is the env variable.
getEnvConfig(program, {
port: 'STORYBOOK_PORT',
host: 'STORYBOOK_HOST',
staticDir: 'STORYBOOK_STATIC_DIR',
configDir: 'STORYBOOK_CONFIG_DIR',
dontTrack: 'STORYBOOK_DO_NOT_TRACK',
port: 'PORT',
host: 'HOSTNAME',
staticDir: 'STATIC_DIR',
configDir: 'CONFIG_DIR',
dontTrack: 'DO_NOT_TRACK',
});

if (program.dontTrack) {
Expand Down

0 comments on commit db6b04e

Please sign in to comment.