mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-11 02:15:57 -05:00
default express.js to production mode, not development
This commit is contained in:
parent
c75249b5b0
commit
8149f883b0
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ module.exports = function(config_hash) {
|
|||
|
||||
var app = express()
|
||||
|
||||
// run in production mode by default, just in case
|
||||
// it shouldn't make any difference anyway
|
||||
app.set('env', process.env.NODE_ENV || 'production')
|
||||
|
||||
function error_reporting_middleware(req, res, next) {
|
||||
var calls = 0
|
||||
res.report_error = res.report_error || function(err) {
|
||||
|
|
Loading…
Add table
Reference in a new issue