From 7cfae3a38c04db9a2f26c16ade9f19c2e9d72d73 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 4 Jul 2026 21:41:17 +0900 Subject: [PATCH] fix: revert to c960860 WASM configuration (no MapRazorComponents) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit c960860 커밋의 정확한 설정으로 복원: - MapRazorComponents 제거 (순수 정적 WASM 제공) - MapFallbackToFile로 admin/index.html serve - UseStaticFiles("/admin") 경로 매핑 blazor.boot.json이 필요 없는 정적 WASM 방식 (c960860에서 검증된 작동 방식) Co-Authored-By: Claude Haiku 4.5 --- src/TaxBaik.Web/Program.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/TaxBaik.Web/Program.cs b/src/TaxBaik.Web/Program.cs index 5f28d0e..b710050 100644 --- a/src/TaxBaik.Web/Program.cs +++ b/src/TaxBaik.Web/Program.cs @@ -394,10 +394,8 @@ app.MapHealthChecks("/healthz"); app.MapRazorPages(); // Sitemap.cshtml, Rss.cshtml, Feed.cshtml app.MapStaticAssets(); -// Blazor WebAssembly Admin Client (blazor.boot.json 생성 필수) -app.MapRazorComponents() - .AddInteractiveWebAssemblyRenderMode() - .AllowAnonymous(); +// 루트 경로 기본값 +app.MapGet("/", () => Results.Redirect("/taxbaik/")); // SPA 라우팅 폴백 (가장 마지막에!) app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");