fix(og): diagnostic fix for CI OG image check
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 17s
Build & Deploy / 🧪 QA (push) Successful in 1m44s
Build & Deploy / 🏗️ Build (push) Successful in 33s
Build & Deploy / 🚀 Deploy (push) Successful in 24s
Build & Deploy / 🧪 Smoke Test (push) Failing after 52s
Build & Deploy / 🔔 Notify (push) Successful in 2s

- Updated scripts/check-og-images.ts to log response body on failure.
- Refined Traefik public router rule in docker-compose.yml for better path matching.
- Fixed TRAEFIK_HOST_RULE assignment in deploy.yml (removed literal single quotes).
This commit is contained in:
2026-02-12 21:35:45 +01:00
parent 9746416146
commit a0d4023f89
3 changed files with 6 additions and 3 deletions

View File

@@ -28,7 +28,10 @@ async function verifyImage(path: string): Promise<boolean> {
const contentType = response.headers.get('content-type');
if (!contentType?.includes('image/png')) {
throw new Error(`Content-Type: ${contentType}`);
const body = await response.text();
throw new Error(
`Content-Type: ${contentType}. Body: ${body.substring(0, 200).replace(/\n/g, ' ')}...`,
);
}
const buffer = await response.arrayBuffer();