diff --git a/projects/sites/scripts/cms-to-static.js b/projects/sites/scripts/cms-to-static.js index 2b20689..71bdb13 100644 --- a/projects/sites/scripts/cms-to-static.js +++ b/projects/sites/scripts/cms-to-static.js @@ -73,6 +73,11 @@ const saveVariantsToDestination = async (inVal, fetchUrl, destination, destinati const thumbnailPath = `${entryPath}/${variant.thumbnailUrl.replace('/uploads/', '')}`; saveFileFromUrl(`http://${rootUrl}${variant.thumbnailUrl}`, thumbnailPath); outVal.entries[entryId].variants[index].thumbnailUrl = `/content/${destinationShort}/${entryId}/${variant.thumbnailUrl.replace('/uploads/', '')}`; + + if (true) { + await writeFile(`${entryPath}/info.json`, JSON.stringify(outVal.entries[entryId], null, 2)); + outVal.entries[entryId] = `/content/${destinationShort}/${entryId}/info.json`; + } })); }));