mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Remove unused error field 'buildError'
This commit is contained in:
parent
6f9b51fce6
commit
b5bd0daf62
|
@ -147,7 +147,7 @@ export default class Server {
|
||||||
|
|
||||||
const compilationErr = this.getCompilationError(page)
|
const compilationErr = this.getCompilationError(page)
|
||||||
if (compilationErr) {
|
if (compilationErr) {
|
||||||
const customFields = { buildError: true }
|
const customFields = { statusCode: 500 }
|
||||||
return await renderScriptError(req, res, page, compilationErr, customFields, this.renderOpts)
|
return await renderScriptError(req, res, page, compilationErr, customFields, this.renderOpts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue