fix(image-service): resolve next.js build crash and strict TS lint warnings for ci deploy

This commit is contained in:
2026-02-22 22:14:35 +01:00
parent 5f7a254fcb
commit c00f4e5ea5
5 changed files with 65 additions and 44 deletions

View File

@@ -123,7 +123,7 @@ IMPORTANT: Return ONLY the JSON object. No markdown wrappers.`,
let result;
try {
result = JSON.parse(body);
} catch (e) {
} catch {
console.error("Failed to parse AI response", body);
return [];
}