Home / Companies / Sanity / Blog / Post Details
Content Deep Dive

Introducing the Sanity source plugin for Gridsome

Blog post from Sanity

Post Details
Company
Date Published
Author
Knut Melvær
Word Count
551
Language
English
Hacker News Points
-
Summary

Sanity's new source plugin for Gridsome enhances the capability of building fast websites with Vue.js by integrating structured content and offering low latency real-time content previews during development. By utilizing Sanity's GraphQL schema definitions, the plugin ensures stable builds even when content is missing, while Portable Text allows for rich text editing using Vue-components. Gridsome, a Vue.js static site generator, facilitates the creation of high-performance websites with features like prerendered markup, taxonomy pages, and effortless pagination, which are beneficial for SEO and user experience. The plugin simplifies the integration process through minimal API requests, fetching the GraphQL schema to map types and stream documents efficiently, minimizing the risk of build failures due to type inference issues. WatchMode and overlayDrafts in development mode enable real-time updates in the frontend without content publishing, making the development process more dynamic and responsive. The collaboration with Gridsome's creators, Tommy and Hans-Jørgen Vedvik, has been instrumental in refining the plugin, making it a fast and reliable choice for building API-based CMS websites.