Add nice error page for boot, like in v8

This commit is contained in:
Bjarke Berg
2021-03-08 10:03:36 +01:00
parent a86054e487
commit 72411aa1a1
5 changed files with 52 additions and 12 deletions

View File

@@ -121,6 +121,7 @@ namespace Umbraco.Extensions
if (!app.UmbracoCanBoot())
{
app.UseStaticFiles(); // We need static files to show the nice error page.
app.UseMiddleware<BootFailedMiddleware>();
}
else