Get registryURL from server config
This commit is contained in:
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user