feat: add prerender-single-product script for single product rendering with i18n support

This commit is contained in:
sebseb7
2025-07-20 10:12:16 +02:00
parent 1fb92e2df9
commit 19cf475b0e
4 changed files with 366 additions and 88 deletions

View File

@@ -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));