Gitpod URLs are generated every time you start a new environment (usually every time you start working a new feature/bug fix), and it doesn't have static URLs. So you would need to update the endpoint URLs manually.
If you use VS Code locally to connect to Gitpod instead of in the browser, all URLs are mapped to localhost, so then it shouldn't be an issue.
For example, a web dashboard project with its own backend that also communicates with an API, which is a separate project.
Does Gitpod (or Codespaces) support projects (repositories) that work together?