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
|
||||
|
||||
Reference in New Issue
Block a user