Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Skip CLI options that don't have an associated config key when buildi…
Browse files Browse the repository at this point in the history
…ng the config override object
  • Loading branch information
stephen-palmer committed Dec 18, 2018
1 parent 8c121b9 commit dddb9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unity_cache_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class UnityCacheServer {
if(!cmd.hasOwnProperty(optionKey) || cmd[optionKey] == null) continue;
const optionVal = cmd[optionKey];
const configKey = optionMap[optionKey].configKey;
_.set(overrides, configKey, optionVal);
if(configKey) _.set(overrides, configKey, optionVal);
}

process.env.NODE_CONFIG = JSON.stringify(overrides);
Expand Down

0 comments on commit dddb9c4

Please sign in to comment.