mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
Set back next
This commit is contained in:
parent
a17c551fca
commit
8e3bd5ffe6
@ -71,7 +71,6 @@ export default class Renderer extends Tapable {
|
||||
|
||||
async loadResources (_fs = fs) {
|
||||
let distPath = resolve(this.options.buildDir, 'dist')
|
||||
|
||||
let updated = []
|
||||
|
||||
resourceMap.forEach(({ key, fileName, transform }) => {
|
||||
@ -95,7 +94,6 @@ export default class Renderer extends Tapable {
|
||||
this.resources[key] = data
|
||||
updated.push(key)
|
||||
})
|
||||
|
||||
if (updated.length > 0) {
|
||||
// debug('Updated', updated.join(', '), isServer)
|
||||
this.createRenderer()
|
||||
@ -264,11 +262,11 @@ export default class Renderer extends Tapable {
|
||||
res.end(html, 'utf8')
|
||||
return html
|
||||
} catch (err) {
|
||||
this.errorMiddleware(err, req, res, next, context)
|
||||
next(this.errorMiddleware(err, req, res, next, context))
|
||||
}
|
||||
}
|
||||
|
||||
async errorMiddleware (err, req, res, next, context) {
|
||||
errorMiddleware (err, req, res, next, context) {
|
||||
/* istanbul ignore if */
|
||||
if (context && context.redirected) {
|
||||
console.error(err) // eslint-disable-line no-console
|
||||
|
Loading…
Reference in New Issue
Block a user