Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions aspnetcore/blazor/fundamentals/startup.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,29 @@ In `wwwroot/index.html`, remove the default SVG round indicator in `<div id="app

:::moniker-end

:::moniker range=">= aspnetcore-8.0"

## Configure the .NET WebAssembly runtime

To configure the .NET WebAssembly runtime, use the `configureRuntime` property with the `dotnet` runtime host builder.

The following example sets an environment variable, `CONFIGURE_RUNTIME`, to `true`:

```html
<script src="{BLAZOR SCRIPT}" autostart="false"></script>
<script>
Blazor.start({
configureRuntime: dotnet => {
dotnet.withEnvironmentVariable("CONFIGURE_RUNTIME", "true");
}
});
</script>
```

In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.

:::moniker-end

## Additional resources

* [Environments: Set the app's environment](xref:blazor/fundamentals/environments)
Expand Down
15 changes: 3 additions & 12 deletions aspnetcore/release-notes/aspnetcore-8.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,11 @@ For more information, see <xref:>.

-->

<!-- UPDATE 8.0

RC1
### Configure the .NET WebAssembly runtime

### Configure .NET WebAssembly runtime

Coverage TBD
The .NET WebAssembly runtime can now be configured for Blazor startup.

* Issue: https://github.com/dotnet/aspnetcore/issues/49264
* PR: https://github.com/dotnet/aspnetcore/pull/49420

For more information, see <xref:>.

-->
For more information, see <xref:blazor/fundamentals/startup?view=aspnetcore-8.0&preserve-view=true#configure-the-net-webAssembly-runtime>.

### Configuration of connection timeouts in `HubConnectionBuilder`

Expand Down