This commit is contained in:
Pooya Parsa 2017-05-16 01:30:06 +04:30
parent c2befae5db
commit e9d998e522

View File

@ -49,7 +49,7 @@ export async function render (req, res) {
/* istanbul ignore next */ /* istanbul ignore next */
req.url = url req.url = url
} }
/* istanbul ignore if */ /* istanbul ignore next */
if (this.dev && req.url.indexOf(self.options.build.publicPath) === 0 && req.url.includes('.hot-update.json')) { if (this.dev && req.url.indexOf(self.options.build.publicPath) === 0 && req.url.includes('.hot-update.json')) {
res.statusCode = 404 res.statusCode = 404
return {html: ''} return {html: ''}
@ -66,7 +66,7 @@ export async function render (req, res) {
res.end(html, 'utf8') res.end(html, 'utf8')
return html return html
} catch (err) { } catch (err) {
/* istanbul ignore if */ /* istanbul ignore next */
if (context.redirected) { if (context.redirected) {
console.error(err) // eslint-disable-line no-console console.error(err) // eslint-disable-line no-console
return err return err