mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25: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
|
// 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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user