diff --git a/package.json b/package.json index 9eab1c985..31c39e5ec 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build:preview": "yarn build:env-loader && node ./scripts/yarn/build:preview.js", "build:sitemap": "yarn build:env-loader & node ./scripts/yarn/build:sitemap.js", "start": "yarn build:env-loader && node ./scripts/yarn/start.js", - "export": "yarn build:env-loader && node ./scripts/yarn/export.js --USE_REDIS=true", + "export": "yarn build:env-loader && node ./scripts/yarn/export.js --USE_REDIS", "export:serve": "http-server out -p 8001", "redis": "docker run --name next-redis -p 6379:6379 -d redis", "redis:cli": "docker exec -it next-redis redis-cli", diff --git a/packages/env-loader/src/cli-options.ts b/packages/env-loader/src/cli-options.ts index 797cacc3d..02ac5d9e3 100644 --- a/packages/env-loader/src/cli-options.ts +++ b/packages/env-loader/src/cli-options.ts @@ -56,6 +56,8 @@ const configureAdditionalHelpText = ( /** * Parses CLI options from the command line into an object. + * + * See https://www.npmjs.com/package/commander#common-option-types-boolean-and-value */ export const getCliOptions = (scriptName: string): EnvVars => { const program = new Command() @@ -78,7 +80,7 @@ export const getCliOptions = (scriptName: string): EnvVars => { .option('--DRUPAL_CLIENT_SECRET ', 'Drupal client secret') .option('--DRUPAL_PREVIEW_SECRET ', 'Drupal preview secret') .option('--DRUPAL_SITE_ID ', 'Drupal site ID') - .option('--USE_REDIS ', 'Enable redis') + .option('--USE_REDIS', 'Enable redis') .option('--REDIS_URL ', 'Redis URL') .option('--SITE_URL ', 'Origin used for generated absolute paths')