og
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 4m48s
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 4m48s
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user