mirror of
https://github.com/harish2704/npm-offline-registry.git
synced 2026-09-10 06:21:09 +00:00
Allow LOCAL_REGISTRY to be set from env
This commit is contained in:
@@ -13,7 +13,10 @@ Object.keys( defaultConfig ).forEach( function(v){
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
if( !config.LOCAL_REGISTRY ){
|
||||||
config.LOCAL_REGISTRY = 'localhost:' + config.PORT;
|
config.LOCAL_REGISTRY = 'localhost:' + config.PORT;
|
||||||
|
}
|
||||||
|
|
||||||
if( config.ENABLE_NPM_FAILOVER == 'false' ){
|
if( config.ENABLE_NPM_FAILOVER == 'false' ){
|
||||||
config.ENABLE_NPM_FAILOVER = false;
|
config.ENABLE_NPM_FAILOVER = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user