Next.js Middleware Functions for Custom Routing Logic — Programming Keynou