Reactjs – How to retrieve the correct pathname value in Next.js middleware when receiving URL with a port number?
I am currently facing an issue where I always receive a port number in my Next.js requests. I am using an Express server in conjunction with Next.js. The problem arises when I attempt to redirect from uppercase to lowercase for…