I have a static site (React) that has an /api route which I’m rerouting to a web service.
When I use the external URL of the web service in the Rewrite rule for the static site, it works as expected.
However, if I use the internal domain, either with or without an http:// prefix, it fails with a 502.
Is this expected? Is there a way to use the internal URL of a web service in a static site’s rewrite rules? I assume using the public URL increases latency. I’m already measuring that Render’s latency is a fair bit worse than an EC2 behind an ALB (the setup I’m migrating from), which is worth it for Render’s benefits, but is frustrating nonetheless.