mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
Coverage
This commit is contained in:
parent
c2befae5db
commit
e9d998e522
@ -49,7 +49,7 @@ export async function render (req, res) {
|
||||
/* istanbul ignore next */
|
||||
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')) {
|
||||
res.statusCode = 404
|
||||
return {html: ''}
|
||||
@ -66,7 +66,7 @@ export async function render (req, res) {
|
||||
res.end(html, 'utf8')
|
||||
return html
|
||||
} catch (err) {
|
||||
/* istanbul ignore if */
|
||||
/* istanbul ignore next */
|
||||
if (context.redirected) {
|
||||
console.error(err) // eslint-disable-line no-console
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user