You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,22 @@ This is important for your Blazor WebAssembly components to work fine in the pre
59
59
60
60
The `ConfigureServices(...)` static local function can also have an `IConfiguration` argument that reflects the contents of the `wwwroot/appsetting.json` JSON file.
61
61
62
+
The prerendering package supposes that the `ConfigureServices` method has no or only one `string` argument and that the string argument means the app's base address if there is one. The package doesn't suppose that the `ConfigureServices` method has two or more string parameters and can't determine those argument names. (The argument names of methods are usually minified at the publishing time.)
63
+
64
+
If you need to pass the environment name to the `ConfigureServices`, please pass the `IWebAssemblyHostEnvironment` to its argument like this.
0 commit comments