mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
fix(render): add _open middleware only for dev + debug
This commit is contained in:
parent
2097a03b9c
commit
cac06d7067
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user