Getting timeout in dev server

I’m using NextJs and and for serverside rendering and image optimization there are some requests that needs to be made on the server. but i’m getting Timeout in each and every one of them. but the server and the CDN are completely accessible in my tests (and even in vercel prod env).
image example