diff --git a/projects/sites/scripts/cms-to-static.js b/projects/sites/scripts/cms-to-static.js index f45d914..16ddde7 100644 --- a/projects/sites/scripts/cms-to-static.js +++ b/projects/sites/scripts/cms-to-static.js @@ -29,6 +29,8 @@ const mapper = (inVal) => { console.log('Invalid URL. Quitting...'); rl.close(); return; + } else if (!fetchUrl.includes('?')) { + fetchUrl += '?populate[0]=entries&populate[1]=entries.variants&populate[2]=tags&populate[3]=tags.value' } }