fix: add ApiClient__BaseUrl environment variable for Dashboard API calls
TaxBaik CI/CD / build-and-deploy (push) Failing after 52s
TaxBaik CI/CD / build-and-deploy (push) Failing after 52s
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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초 후 강제 숨김
|
||||
}
|
||||
</script>
|
||||
<MudThemeProvider @bind-IsDarkMode="isDarkMode" Theme="mudTheme" />
|
||||
|
||||
Reference in New Issue
Block a user