mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
feat(app): hide error logs in production
This commit is contained in:
parent
33fb5693d9
commit
0fece913e5
@ -92,8 +92,10 @@ async function createApp (ssrContext) {
|
|||||||
const _nuxt = this._nuxt || this.$options._nuxt
|
const _nuxt = this._nuxt || this.$options._nuxt
|
||||||
_nuxt.dateErr = Date.now()
|
_nuxt.dateErr = Date.now()
|
||||||
_nuxt.err = err
|
_nuxt.err = err
|
||||||
console.error(err)
|
if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
||||||
console.error('[nuxt] ' + err)
|
console.error(err)
|
||||||
|
console.error('[nuxt] ' + err)
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user