nobuc middlewaver update for NODE_ENV