We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c76ad commit 0ec6932Copy full SHA for 0ec6932
examples/basic/src/server.js
@@ -22,7 +22,8 @@ server
22
});
23
res.send(html);
24
} catch (error) {
25
- res.json(error);
+ console.error(error);
26
+ res.json({ message: error.message, stack: error.stack });
27
}
28
29
src/loadInitialProps.tsx
@@ -16,11 +16,9 @@ export async function loadInitialProps(
16
.then(() =>
17
(route.component as any)
18
.getInitialProps({ match, ...ctx })
19
- .catch(() => {})
20
)
21
: (route.component as any)
);
return match;
0 commit comments