fix: add MapRazorComponents registration for Blazor WebAssembly clients
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m28s

- Register Admin WASM client (TaxBaik.Web.Client)
- Register Portal WASM client (TaxBaik.Portal.Client)
- This enables blazor.boot.json generation during publish
- Fixes 'unhandled exception' error in browser console

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-07-04 12:13:43 +09:00
parent 1cc2f8f5d2
commit 33aa2adaea
+12
View File
@@ -392,6 +392,18 @@ app.MapHealthChecks("/healthz");
app.MapRazorPages(); // Sitemap.cshtml, Rss.cshtml, Feed.cshtml
app.MapStaticAssets();
// Blazor WebAssembly Admin Client
app.MapRazorComponents<TaxBaik.Web.Client.Components.Admin.App>()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(TaxBaik.Web.Client._Imports).Assembly)
.AllowAnonymous();
// Portal WASM Client
app.MapRazorComponents<TaxBaik.Portal.Client.Components.App>()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(TaxBaik.Portal.Client._Imports).Assembly)
.AllowAnonymous();
// SPA 라우팅 폴백 (가장 마지막에!)
app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");
app.MapFallbackToFile("portal/{*path:nonfile}", "portal/index.html");