Update ProgramSeed.cs (#24294)
parent
fc5f7eb1fa
commit
3c6b227e63
|
@ -21,11 +21,7 @@ using (var scope = app.Services.CreateScope())
|
|||
SeedData.Initialize(services);
|
||||
}
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
else
|
||||
if (!app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseExceptionHandler("/Error");
|
||||
app.UseHsts();
|
||||
|
@ -85,4 +81,4 @@ app.MapRazorPages();
|
|||
|
||||
app.Run();
|
||||
#endregion
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue