Fixed dev. exception page

This commit is contained in:
Thorsten Sommer 2024-05-18 22:40:48 +02:00
parent e28c2e2c10
commit b63013ab49
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

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,