mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-10 19:29:07 +00:00
Fixed dev. exception page
This commit is contained in:
parent
e28c2e2c10
commit
b63013ab49
@ -48,10 +48,10 @@ app.Use(Redirect.HandlerContentAsync);
|
|||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
|
app.UseDeveloperExceptionPage();
|
||||||
#else
|
#else
|
||||||
|
|
||||||
var fileProvider = new ManifestEmbeddedFileProvider(Assembly.GetAssembly(type: typeof(Program))!, "wwwroot");
|
var fileProvider = new ManifestEmbeddedFileProvider(Assembly.GetAssembly(type: typeof(Program))!, "wwwroot");
|
||||||
app.UseDeveloperExceptionPage();
|
|
||||||
app.UseStaticFiles(new StaticFileOptions
|
app.UseStaticFiles(new StaticFileOptions
|
||||||
{
|
{
|
||||||
FileProvider = fileProvider,
|
FileProvider = fileProvider,
|
||||||
|
Loading…
Reference in New Issue
Block a user