Internal address in nextjs app

Hello! We have a nextjs app with routes in one service (service-A), and another nextjs app in another service (service-b)
When configuring some api calls from service-a to service-b it works if we provide the service-b a public IP, we route our domain to that ip, or if we use the public address.

however if we set the same env variable to http://service-b.internal or service-b.internal it does not work.

We dont want service-b to be accessible publicly so it would be great to find a way to do this route internally which should be also faster. Any ideas on what are we configuring wrongly?

We get the error:
Failed to proxy http://service-b.internal/data/query Error: connect ECONNREFUSED fdaa:0:eaaxxxxxxxxxxxxx:80

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.