From cac06d7067600dfdd51df976738507d4c9f2dfb4 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 8 Dec 2017 12:22:15 +0330 Subject: [PATCH] fix(render): add _open middleware only for dev + debug --- lib/core/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/renderer.js b/lib/core/renderer.js index 4e70a4af5b..a4d0987b8d 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -223,7 +223,7 @@ export default class Renderer { // open in editor for debug mode only const _this = this - if (this.options.debug) { + if (this.options.debug && this.options.dev) { this.useMiddleware({ path: '_open', handler(req, res) {