fix(og): diagnostic fix for CI OG image check
- 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user