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