mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
Fixed issue with not being able to disable the web interface
This commit is contained in:
parent
bc91a05dd2
commit
c49b0699c2
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ module.exports = function(config_hash) {
|
|||
app.use(require('./index-api')(config, auth, storage))
|
||||
|
||||
if (config.web && config.web.enable === false) {
|
||||
next( Error[404]('web interface is disabled in the config file') )
|
||||
app.get('/', function(req, res, next) {
|
||||
next( Error[404]('web interface is disabled in the config file') )
|
||||
})
|
||||
} else {
|
||||
app.use(require('./index-web')(config, auth, storage))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue