Correctly reference backend in frontend #1742
Unanswered
UrielMhezzek
asked this question in
Q&A
Replies: 1 comment
-
Not sure if this helps, but as you're in the Aspire issues, I'm assuming you're using Aspire and then you could do this:
This goes in the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an existing backend api. This should now get a new frontend. The fontend supports both render modes server-side and client-side. I have created a normal web project for this purpose. This then added two projects to me. the frontend for the server and a web assembly for the client. if I adjust the program.cs in the client and add
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri($"http://backend") });
the httpclient does not connect to the backend but "backend" is not replaced by aspiere. How can I change this?
Beta Was this translation helpful? Give feedback.
All reactions