fix(render): add _open middleware only for dev + debug

This commit is contained in:
Pooya Parsa 2017-12-08 12:22:15 +03:30
parent 2097a03b9c
commit cac06d7067

View File

@ -223,7 +223,7 @@ export default class Renderer {
// open in editor for debug mode only // open in editor for debug mode only
const _this = this const _this = this
if (this.options.debug) { if (this.options.debug && this.options.dev) {
this.useMiddleware({ this.useMiddleware({
path: '_open', path: '_open',
handler(req, res) { handler(req, res) {