Skip to content

Commit 043e87d

Browse files
Always UseWebAssemblyDebugging - fixes dotnet/AspNetCore-ManualTests#814 (#35294)
1 parent 6d99d06 commit 043e87d

File tree

1 file changed

+4
-6
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server

1 file changed

+4
-6
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server/Program.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,24 @@
7474
var app = builder.Build();
7575

7676
// Configure the HTTP request pipeline.
77-
#if (IndividualLocalAuth)
7877
if (app.Environment.IsDevelopment())
7978
{
79+
#if (IndividualLocalAuth)
8080
app.UseMigrationsEndPoint();
81+
#endif
8182
app.UseWebAssemblyDebugging();
8283
}
8384
else
84-
#else
85-
if (!app.Environment.IsDevelopment())
86-
#endif
8785
{
8886
app.UseExceptionHandler("/Error");
8987
#if (RequiresHttps)
9088
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
9189
app.UseHsts();
90+
#endif
9291
}
9392

93+
#if (RequiresHttps)
9494
app.UseHttpsRedirection();
95-
#else
96-
}
9795

9896
#endif
9997

0 commit comments

Comments
 (0)