deploy to root user
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 37s

This commit is contained in:
2025-04-28 20:15:44 +02:00
parent ebb831d741
commit 8efa27e1dd
2 changed files with 6 additions and 8 deletions

View File

@@ -16,14 +16,12 @@ var services = builder.Services;
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
UriBuilder uriBuilder = new(builder.HostEnvironment.BaseAddress);
#if DEBUG
UriBuilder uriBuilder = new(builder.HostEnvironment.BaseAddress)
{
Port = 8000
};
#else
UriBuilder uriBuilder = new(Environment.GetEnvironmentVariable("API_URL")
?? throw new ArgumentNullException("API_URL", "Environment variable API_URL is missing"));
uriBuilder.Port = 8000;
}
#endif
services.AddHttpClient(