Skip to content

All Posts

Thoughts on design, development, and everything in between.

9 min readUpdated

From Sanity to Payload Part 2: Replicating the structure in Payload

Learn how to replicate Sanity schemas in Payload CMS, set up media handling with LQIP generation, and create the service layer that makes switching between CMSs as simple as changing a few import paths. Part 2 of the Sanity to Payload migration series.

PayloadSanityCMS MigrationNext.jsTypeScriptArchitectureMedia HandlingWeb Development
9 min readUpdated

From Sanity to Payload Part 1: DTOs & Transformers

I was 90% done with my personal site when PayloadCMS announced they were joining Figma. Pure curiosity made me wonder: how hard would it be to switch CMSs mid-project? Here's how I built an abstraction layer with DTOs and transformers that makes CMS migrations almost painless.

NextJSApp RouterDTOsSanity.ioPayloadCMSCMS MigrationTypeScriptArchitectureHeadless CMSData Layer