og
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 4m48s

This commit is contained in:
2026-01-29 17:26:02 +01:00
parent 13e56a88bc
commit a2f94f15bc
17 changed files with 102 additions and 36 deletions

View File

@@ -50,10 +50,11 @@ export async function GET(
);
}
const { origin } = new URL(request.url);
const featuredImage = product.frontmatter.images?.[0]
? (product.frontmatter.images[0].startsWith('http')
? product.frontmatter.images[0]
: `https://klz-cables.com${product.frontmatter.images[0]}`)
: `${origin}${product.frontmatter.images[0]}`)
: undefined;
return new ImageResponse(