fix: disable prerendering for protected admin pages - functional requirement
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m18s

Problem: Prerendering static HTML without auth context causes [@Authorize] protected
pages to render blank because AuthorizeRouteView cannot render content without
authentication state.

Solution: prerender: false
- WebAssembly runtime loads and fully renders all interactive content
- All [@Authorize] pages render correctly with authentication
- Initial load slightly slower (0.5-2s) but all functionality works

Result: Admin pages fully functional. Validated with Playwright on production domain.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 02:27:43 +09:00
parent 07e6a2a4ef
commit 56a7d0475b
2 changed files with 82 additions and 1 deletions
@@ -36,7 +36,7 @@
</div>
</div>
<MudThemeProvider @bind-IsDarkMode="isDarkMode" Theme="mudTheme" />
<Routes @rendermode="new InteractiveWebAssemblyRenderMode(prerender: true)" />
<Routes @rendermode="new InteractiveWebAssemblyRenderMode(prerender: false)" />
<script src="/taxbaik/_content/MudBlazor/MudBlazor.min.js"></script>
<script src="/taxbaik/js/admin-session.js"></script>
<script src="/taxbaik/_framework/blazor.web.js"></script>