Get registryURL from server config

This commit is contained in:
Michael Jackson
2018-05-17 15:22:01 -07:00
parent 29697ed201
commit 625e36ec5b
3 changed files with 7 additions and 4 deletions

View File

@ -4,3 +4,6 @@ exports.origin =
process.env.NODE_ENV === "production" || process.env.NODE_ENV === "test"
? "https://unpkg.com"
: `http://localhost:${exports.port}`;
exports.registryURL =
process.env.NPM_REGISTRY_URL || "https://registry.npmjs.org";