Fixed dev. exception page

This commit is contained in:
tsommer committed 2024-05-18 22:40:48 +02:00
1 parent e28c2e2c10
commit b63013ab49
1 file changed
+1 -1
+1 -1
View File
@@ -48,10 +48,10 @@ app.Use(Redirect.HandlerContentAsync);
#if DEBUG
app.UseStaticFiles();
app.UseDeveloperExceptionPage();
#else
var fileProvider = new ManifestEmbeddedFileProvider(Assembly.GetAssembly(type: typeof(Program))!, "wwwroot");
app.UseDeveloperExceptionPage();
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = fileProvider,