How to make request to another api from Next.js?

Viewed 11

I'm new in Next.js and I'm trying to make a request to third-party API. But when I using swr package Next.js middleware adds another API URL . As a result, you can see in the picture below there is a two API URLs. Is there any way to make a request without changing middleware?

enter image description here

Here is what middleware looks like

enter image description here

0 Answers
Related