0
Fork 0
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:
Alex Kocharin 2013-12-12 03:19:40 +04:00
parent c75249b5b0
commit 8149f883b0

View file

@ -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) {