i referenced the blazor project to Aspire app host so this is my aspire app host code
using AnswerMe.Aspire.AppHost;
var builder = DistributedApplication.CreateBuilder(args);
var identityServerDb=builder.AddPostgres("identityserver", password: builder.CreateStablePassword("AnswerMeDB-password"))
.WithDataVolume()
.WithPgAdmin()
.AddDatabase("IdentityServerDb");
var identityServerApi = builder.AddProject<Projects.IdentityServer_Api>("identityserverapi")
.WithReference(identityServerDb);
var client = builder.AddProject<Projects.AnswerMe_Client>("answermeclient")
.WithReference(identityServerApi);
builder. Build().Run();
and this is my blazor code to add HTTP client
builder.Services.AddHttpClient(nameof(HttpClients.IdentityServer),
client => { client.BaseAddress = new("http://identityserverapi"); });
so as you can see in the result it doesn’t replace the http://identityserverapi
with the actual address