From d948d824606e0763ec9a2f7787276db5c96433db Mon Sep 17 00:00:00 2001 From: moonheart Date: Fri, 29 Nov 2024 12:20:32 +0800 Subject: [PATCH] fix map static not found --- MementoMori.WebUI/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MementoMori.WebUI/Program.cs b/MementoMori.WebUI/Program.cs index 80d7f9a..6dada0a 100644 --- a/MementoMori.WebUI/Program.cs +++ b/MementoMori.WebUI/Program.cs @@ -94,7 +94,7 @@ public static void Main(string[] args) // Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) app.UseExceptionHandler("/Error"); - app.MapStaticAssets(); + app.UseStaticFiles(); app.UseAntiforgery(); app.MapRazorComponents() .AddAdditionalAssemblies(typeof(Index).Assembly)