Update ProgramSeed.cs (#24294)

pull/24295/head
Rick Anderson 2021-12-13 13:57:51 -10:00 committed by GitHub
parent fc5f7eb1fa
commit 3c6b227e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -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();