I'm trying to write a serverless function in next and i have issues with the Prismic API
Below is my code
My issue is when i make an API call in next without query params it works but as soon as i add params it returns an empty array but the repository isn't empty