Javascript – NextJS API route is not able to access search params
I have a simple NextJS app where I have a client component that calls an API route. I am trying to access some search params in a route that I created but it is always returning null. My client component…