C
C#•4d ago
Max

Can you map a project as an external reference to a project in .NET Aspire?

I have a .NET backend API project, and a React Vite frontend. Everything works fine debugging locally, but when I generate a docker-compose file with Aspir8 the frontend with has a HasReference(api) gets the "internal" docker url, but Id like to get the "external" (it will be external from docker but still "internal/localhost") and the published port of docker?
1 Reply
Max
MaxOP•4d ago
I solved my problem via proxying all of the requests to the api via the react server backend instead 🙂

Did you find this page helpful?