Skip to content

Commit

Permalink
Change config notation
Browse files Browse the repository at this point in the history
  • Loading branch information
jackreimers committed Aug 22, 2023
1 parent f2d3ec3 commit 764a5f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/WebUI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@

var apiBaseUrl = builder.HostEnvironment.IsDevelopment()
? "https://localhost:7104"
: builder.Configuration.GetValue<string>("ApiBaseUrl");
//: "https://ssw-rulesgpt-api.azurewebsites.net";
: builder.Configuration["ApiBaseUrl"];

builder.Services
.AddHttpClient(
Expand Down
2 changes: 1 addition & 1 deletion src/WebUI/SignalRClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public SignalRClient(

var hubeBaseUrl = hostEnvironment.IsDevelopment()
? "https://localhost:7104"
: configuration.GetValue<string>("ApiBaseUrl");
: configuration["ApiBaseUrl"];

var hubUrl = $"{hubeBaseUrl}/ruleshub";

Expand Down

0 comments on commit 764a5f4

Please sign in to comment.