fix: add MapRazorComponents registration for Blazor WebAssembly clients
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m28s
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user