From 96397adf1f97c3cb1fafa6f9a2b44f2afe75ba63 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Tue, 19 Sep 2023 10:21:32 +0200 Subject: [PATCH] UseDeveloperExceptionPage is called automatically in minimal hosting model --- src/Umbraco.Web.UI/Program.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Umbraco.Web.UI/Program.cs b/src/Umbraco.Web.UI/Program.cs index 780ac4d53e..ce23e48ff6 100644 --- a/src/Umbraco.Web.UI/Program.cs +++ b/src/Umbraco.Web.UI/Program.cs @@ -11,11 +11,6 @@ WebApplication app = builder.Build(); await app.BootUmbracoAsync(); -if (app.Environment.IsDevelopment()) -{ - app.UseDeveloperExceptionPage(); -} - #if (UseHttpsRedirect) app.UseHttpsRedirection(); #endif