From f08efb1a6dbe0354b96a9331c00d838ec5cb7aa7 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Fri, 3 Jul 2026 16:35:36 +0900 Subject: [PATCH] fix: add ApiClient__BaseUrl environment variable for Dashboard API calls PROBLEM: Dashboard page was stuck loading forever ROOT CAUSE: - AdminDashboardClient requires ApiClient:BaseUrl configuration - deploy_gb.sh was missing ApiClient__BaseUrl environment variable - HttpClient had no BaseAddress, causing all API calls to fail SOLUTION: - Remove timeout bandaid from App.razor - Add ApiClient__BaseUrl to deploy_gb.sh environment variables - API requests will now properly route to http://127.0.0.1:${TARGET_PORT}/taxbaik/api/ EXPECTED RESULT: - Dashboard API calls succeed - Dashboard page loads normally - Blog management page becomes clickable Co-Authored-By: Claude Haiku 4.5 --- deploy_gb.sh | 1 + src/TaxBaik.Web/Components/Admin/App.razor | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/deploy_gb.sh b/deploy_gb.sh index c95ddd7..c2b4001 100644 --- a/deploy_gb.sh +++ b/deploy_gb.sh @@ -68,6 +68,7 @@ cd "$DEPLOY_DIR" export ASPNETCORE_ENVIRONMENT=Production export ASPNETCORE_URLS="http://127.0.0.1:$TARGET_PORT" export ConnectionStrings__Default="Host=localhost;Database=taxbaikdb;Username=taxbaik;Password=taxbaik123" +export ApiClient__BaseUrl="http://127.0.0.1:$TARGET_PORT/taxbaik/api/" export DOTNET_PRINT_TELEMETRY_MESSAGE=false # Run dotnet process diff --git a/src/TaxBaik.Web/Components/Admin/App.razor b/src/TaxBaik.Web/Components/Admin/App.razor index 7684043..d1bf472 100644 --- a/src/TaxBaik.Web/Components/Admin/App.razor +++ b/src/TaxBaik.Web/Components/Admin/App.razor @@ -42,18 +42,6 @@ if (!document.documentElement.classList.contains('admin-login-route')) { var loadingOverlay = document.getElementById('blazor-loading'); if (loadingOverlay) loadingOverlay.classList.add('show'); - - // WASM 부팅 타임아웃 (30초): 강제로 로딩 숨김 - window._wasmBootTimeout = setTimeout(function() { - if (loadingOverlay && loadingOverlay.classList.contains('show')) { - console.warn('[Admin] WASM boot timeout - forcing hideLoading'); - if (window.taxbaikAdminSession && window.taxbaikAdminSession.hideLoading) { - window.taxbaikAdminSession.hideLoading(); - } else { - loadingOverlay.classList.remove('show'); - } - } - }, 30000); // 30초 후 강제 숨김 }