This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Server Side Rendering based on routes matched by React-router. | |
app.use((req, res) => { | |
match({ | |
routes, | |
location: req.url | |
}, (err, redirectLocation, renderProps) => { | |
if (err) { | |
return res.status(500).end('Internal server error'); | |
} |