1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

ensure not to render ErrorDebug on production (#1064)

This commit is contained in:
Naoyuki Kanezawa 2017-02-10 18:05:22 +09:00 committed by Tim Neutkens
parent 15facf0ae1
commit ed00eb7236

View file

@ -65,7 +65,7 @@ async function doRender (req, res, pathname, query, {
const app = createElement(App, {
Component,
props,
err,
err: dev ? err : null,
router: new Router(pathname, query)
})