I inherited a project where we use Next.js and we have a custom server.js handling routes like this:
server.get(\'/blog/:category([a-zA-Z-]+)\', (req, res) =&