Fix admin routing and Playwright smoke checks
TaxBaik CI/CD / build-and-deploy (push) Successful in 5m22s
TaxBaik CI/CD / build-and-deploy (push) Successful in 5m22s
This commit is contained in:
@@ -395,12 +395,9 @@ app.MapHealthChecks("/healthz");
|
||||
app.MapRazorPages(); // Sitemap.cshtml, Rss.cshtml, Feed.cshtml
|
||||
app.MapStaticAssets();
|
||||
|
||||
// Blazor WebAssembly - prerender: false 페이지 지원
|
||||
// 대시보드 등은 prerender: false이므로 MapRazorComponents 필수
|
||||
// AddAdditionalAssemblies: WASM 클라이언트의 모든 컴포넌트 명시적 등록 (필수!)
|
||||
// Blazor WebAssembly - prerender 지원
|
||||
app.MapRazorComponents<TaxBaik.WasmClient.Components.Admin.App>()
|
||||
.AddInteractiveWebAssemblyRenderMode()
|
||||
.AddAdditionalAssemblies(typeof(TaxBaik.WasmClient.Components.Admin._Imports).Assembly)
|
||||
.AllowAnonymous();
|
||||
|
||||
// SPA 라우팅 폴백
|
||||
|
||||
@@ -1547,8 +1547,9 @@ textarea:focus-visible {
|
||||
}
|
||||
|
||||
#blazor-loading.show {
|
||||
display: flex;
|
||||
animation: overlayFadeIn 0.15s ease-out;
|
||||
display: flex;
|
||||
animation: overlayFadeIn 0.15s ease-out;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@keyframes overlayFadeIn {
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
// Debug 환경에서 .pdb 파일 요청 차단 (WASM 부팅 최적화)
|
||||
if (window.taxbaikBlockPdb) {
|
||||
const originalFetch = window.fetch;
|
||||
window.fetch = function(url, ...args) {
|
||||
if (typeof url === 'string' && url.includes('.pdb')) {
|
||||
return Promise.reject(new TypeError('Blocked: pdb'));
|
||||
}
|
||||
return originalFetch.apply(window, [url, ...args]);
|
||||
};
|
||||
}
|
||||
|
||||
window.taxbaikAdminSession = {
|
||||
clientLogState: {
|
||||
enabled: true,
|
||||
@@ -348,7 +359,7 @@ window.taxbaikAdminSession = {
|
||||
// Blazor가 대시보드 페이지를 로드할 때 CustomAuthenticationStateProvider가
|
||||
// 자동으로 localStorage에서 토큰을 복원합니다
|
||||
setTimeout(() => {
|
||||
window.location.href = '/admin/dashboard';
|
||||
window.location.href = '/taxbaik/admin/dashboard';
|
||||
}, 200);
|
||||
} catch (error) {
|
||||
window.taxbaikAdminSession.traceUiState('admin-login', `submit failed: ${error?.message || 'login failed'}`);
|
||||
|
||||
Reference in New Issue
Block a user