From a7365abfb1a65ae1ddd3505b3d786a6ce5075725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ben=C3=AD=C4=8Dek?= Date: Tue, 21 Jan 2025 11:28:36 +0100 Subject: [PATCH] program.cs - set automatic detection for base URL --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index a1190cc..035b202 100644 --- a/Program.cs +++ b/Program.cs @@ -6,7 +6,7 @@ var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); -//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); -builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://10.0.0.190") }); +builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); +//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://10.0.0.190") }); await builder.Build().RunAsync();