Skip to content

Commit ed00eb7

Browse files
nkzawatimneutkens
authored andcommitted
ensure not to render ErrorDebug on production (vercel#1064)
1 parent 15facf0 commit ed00eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/render.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function doRender (req, res, pathname, query, {
6565
const app = createElement(App, {
6666
Component,
6767
props,
68-
err,
68+
err: dev ? err : null,
6969
router: new Router(pathname, query)
7070
})
7171

0 commit comments

Comments
 (0)