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 5f745c0 commit b043955Copy full SHA for b043955
docs/guides/advanced/ServerRendering.md
@@ -27,6 +27,9 @@ serve((req, res) => {
27
} else if (redirectLocation) {
28
res.redirect(302, redirectLocation.pathname + redirectLocation.search)
29
} else if (renderProps) {
30
+ // You can also check renderProps.components or renderProps.routes for
31
+ // your "not found" component or route respectively, and send a 404 as
32
+ // below, if you're using a catch-all route.
33
res.status(200).send(renderToString(<RouterContext {...renderProps} />))
34
} else {
35
res.status(404).send('Not found')
0 commit comments