Skip to content
代码片段 群组 项目
未验证 提交 043e87df 编辑于 作者: Steve Sanderson's avatar Steve Sanderson 提交者: GitHub
浏览文件

Always UseWebAssemblyDebugging - fixes...

Always UseWebAssemblyDebugging - fixes https://github.com/aspnet/AspNetCore-ManualTests/issues/814 (#35294)
上级 6d99d067
No related branches found
No related tags found
无相关合并请求
...@@ -74,26 +74,24 @@ builder.Services.AddRazorPages(); ...@@ -74,26 +74,24 @@ builder.Services.AddRazorPages();
var app = builder.Build(); var app = builder.Build();
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
#if (IndividualLocalAuth)
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
#if (IndividualLocalAuth)
app.UseMigrationsEndPoint(); app.UseMigrationsEndPoint();
#endif
app.UseWebAssemblyDebugging(); app.UseWebAssemblyDebugging();
} }
else else
#else
if (!app.Environment.IsDevelopment())
#endif
{ {
app.UseExceptionHandler("/Error"); app.UseExceptionHandler("/Error");
#if (RequiresHttps) #if (RequiresHttps)
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts(); app.UseHsts();
#endif
} }
#if (RequiresHttps)
app.UseHttpsRedirection(); app.UseHttpsRedirection();
#else
}
#endif #endif
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册