Skip to content

Commit f2c6b1f

Browse files
committed
update default Next.js routes on server to allow new express 5 version
1 parent ccd6ed2 commit f2c6b1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ const onAppHasBeenPrepared = () => {
8686
});
8787
});
8888

89-
server.get('*', (req, res) => {
89+
// handle all other routes with Next.js
90+
server.all(/(.*)/, (req, res) => {
9091
return handle(req, res);
9192
});
9293

0 commit comments

Comments
 (0)