Skip to content

Commit 4d5e043

Browse files
authored
[Blazor] Disable built-in HotReload when environment variable is set (#62735)
1 parent 292fe52 commit 4d5e043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ internal async Task RunAsyncCore(CancellationToken cancellationToken, WebAssembl
139139
manager.SetPlatformRenderMode(RenderMode.InteractiveWebAssembly);
140140
await manager.RestoreStateAsync(store);
141141

142-
if (MetadataUpdater.IsSupported)
142+
if (MetadataUpdater.IsSupported && Environment.GetEnvironmentVariable("__BLAZOR_WEBASSEMBLY_LEGACY_HOTRELOAD") != "false")
143143
{
144144
await WebAssemblyHotReload.InitializeAsync();
145145
}

0 commit comments

Comments
 (0)