Browse Source

pre-release-2

HOME 2 years ago
parent
commit
da0bca9e79
2 changed files with 4 additions and 3 deletions
  1. 1 0
      SimpleWebChat.BlazorWasm/SwcProgram.cs
  2. 3 3
      SimpleWebChat.ConHost/config.json

+ 1 - 0
SimpleWebChat.BlazorWasm/SwcProgram.cs

@@ -16,6 +16,7 @@ builder.Services.AddScoped(sp =>
     var NavManager = sp.GetService<Microsoft.AspNetCore.Components.NavigationManager>();
     var ba = new Uri($"{NavManager.ToAbsoluteUri("/").GetLeftPart(UriPartial.Scheme | UriPartial.Authority)}");
     http.BaseAddress = ba;
+    SimpleWebChat.BlazorWasm.Modules.GlobalModule.BasePath = NavManager.BaseUri;
 #endif
 
     return http;

+ 3 - 3
SimpleWebChat.ConHost/config.json

@@ -1,6 +1,6 @@
 {
-  "ListenPrefix": "http://swc-server/",
-  "AliasPrefix": [ "https://svc-server/" ],
+  "ListenPrefix": "http://localhost:9527/",
+  "AliasPrefix": [ "https://localhost:9528/" ],
   "HistoryMessageLength": 100,
   "Title": "Simple Web Chat",
   "AdminPassword": "",
@@ -8,7 +8,7 @@
     "blazor": {
       "IsDefault": true,
       "DisplayText": "Blazor WASM UI",
-      "Path": "z:/bwu",
+      "Path": "wwwroot",
       "DefaultDocument": "index.html",
       "EnableFallbackRoute": true,
       "HtmlBaseReplace": "<base href=\"/\" />"