fix(ci): Resolve HTML validation 404, Backstop missing references, and blog image optimization
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 25s
Build & Deploy / 🧪 QA (push) Successful in 1m53s
Build & Deploy / 🏗️ Build (push) Successful in 3m56s
Build & Deploy / 🚀 Deploy (push) Successful in 32s
Build & Deploy / 🧪 Smoke Test (push) Successful in 1m2s
Build & Deploy / ⚡ Lighthouse (push) Successful in 2m40s
Build & Deploy / 🛡️ Quality Gates (push) Failing after 2m47s
Build & Deploy / 📸 Visual Diff (push) Failing after 6m37s
Build & Deploy / ♿ WCAG (push) Successful in 7m8s
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-22 15:11:58 +01:00
parent 73c4988eb2
commit 1d24a8fb7a
10 changed files with 15 additions and 9 deletions

View File

@@ -57,6 +57,12 @@ export async function getProductMetadata(
if (filePath && fs.existsSync(filePath)) {
const fileContent = fs.readFileSync(filePath, 'utf8');
const { data } = matter(fileContent);
// Filter out products without images to match getProductBySlug behavior
if (!data.images || data.images.length === 0 || !data.images[0]) {
return null;
}
return {
slug: fileSlug,
frontmatter: {