Headless CMS architecture: what I learned owning one for three years
For more than three years at Cali Floors I owned a production headless platform: Next.js on Vercel for the front end, Sanity CMS for content, and BigCommerce for commerce through REST and GraphQL APIs, with 500+ products. Here is what that taught me.
The architecture in one paragraph
Content editors work in Sanity. Commerce data (products, carts, checkout) lives in BigCommerce. A Next.js application on Vercel pulls from both and renders the storefront. Each system does one job, and the front end is the only place they meet.
Lessons that held up
1. Model the content before you build the pages. A clean Sanity schema, with reusable blocks instead of one-off page types, makes everything downstream easier: components, previews and new campaigns.
2. Give each system one job. Editorial content belongs in the CMS, and transactional data belongs in the commerce platform. When those lines blur, you end up synchronizing data you shouldn't own.
3. Treat integrations as production code. Connecting a front end to commerce APIs means handling keys securely, failing gracefully and planning for slow or unavailable upstream services. I kept the platform secure and reliable by designing for those cases up front.
4. Make deployment boring. Predictable deploys on Vercel meant releases were routine, and that is what let marketing publish on its own.
5. Build for the editors. A headless setup only pays off if the people writing content can use it. That is why I invested as much in the component library and documentation as in the code.
When headless is the right call
It fits when you need a custom front end, fast pages, and content and commerce managed in different tools. It is a poor fit when a team just needs a simple site and has no capacity to maintain the extra moving parts. Knowing which situation you are in is part of the job.