I have seen a few developers using headless CMS Sanity and host their sites using Netlify or Gatsby for a small ecommerce site with products below 20 items then they connect it to Shopify store for the payment gateways.
To me, it is overkill for most e-commerce websites while also Shopify provides CMS tool to update images or product descriptions etc..
What is the advantage here?