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 fly.io 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