feat: add prerender-single-product script for single product rendering with i18n support
This commit is contained in:
@@ -187,7 +187,7 @@ const saveProductImages = async (socket, products, categoryName, outputDir) => {
|
||||
const imageBuffer = await fetchProductImage(socket, bildId);
|
||||
|
||||
// If overlay exists, apply it to the image
|
||||
if (fs.existsSync(overlayPath)) {
|
||||
if (false && fs.existsSync(overlayPath)) {
|
||||
try {
|
||||
// Get image dimensions to center the overlay
|
||||
const baseImage = sharp(Buffer.from(imageBuffer));
|
||||
|
||||
Reference in New Issue
Block a user