From 16f7a203bc13a1a816840aac4553c53349a88eef Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Fri, 13 Feb 2026 22:31:00 +0000 Subject: [PATCH] fix(ci): use valid API endpoint for post-deployment health check /api returns 404 in Payload CMS (no root handler). Use /api/users which returns 401 (valid response, proves API is running). Co-Authored-By: Claude Opus 4.6 --- .github/workflows/deploy-production.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 7b02f6c..f2ec688 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -377,8 +377,8 @@ jobs: ADMIN_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ env.PRODUCTION_URL }}/admin") echo "Admin Panel: HTTP $ADMIN_STATUS" - # Check API - API_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ env.PRODUCTION_URL }}/api") + # Check API (Payload serves /api/users as a valid endpoint) + API_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ env.PRODUCTION_URL }}/api/users") echo "API: HTTP $API_STATUS" # Summary