mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-07-25 14:08:33 -06:00
PR-589725: fixing express 5 wildcard migration.
This commit is contained in:
@ -129,7 +129,7 @@ const renderApp = (req, res, next) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
app
|
app
|
||||||
.get(/\*/, renderApp);
|
.get('/{*splat}', renderApp);
|
||||||
|
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, () => {
|
||||||
console.log(`Server running on port ${PORT}`);
|
console.log(`Server running on port ${PORT}`);
|
||||||
|
Reference in New Issue
Block a user