Hi newbie here! I'm looking at making baby steps from a custom CMS that generates JSON data files that are committed to GitHub which are then consumed by Eleventy when the...

2 replies
Last updated: Sep 1, 2020

Hi newbie here!
I'm looking at making baby steps from a custom CMS that generates JSON data files that are committed to GitHub which are then consumed by Eleventy when the site is rebuilt by Netlify.

I'd appreciate some pointers on how I can read in my data as JSON from Sanity.

Aug 29, 2020, 3:12 PM

Hi!
Sanity comes with a hosted data store that the Studio syncs to in real-time. So you need to import your JSON data into it to be able to interact with it through the APIs. Here’s a guide that should be helpful:
https://www.sanity.io/guides/guide-importing-data-from-external-sources

Aug 30, 2020, 11:19 AM

Hi

user Y
, thanks for responding to my post. That doc is a great help, thanks.

Sep 1, 2020, 9:04 AM

Sanity.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Give your team exactly what they need to edit and publish their content with the customizable Sanity Studio. Get real-time collaboration out of the box. Sanity.io comes with a hosted datastore for JSON documents, query languages like GROQ and GraphQL, CDNs, on-demand asset transformations, presentation agnostic rich text, plugins, and much more.

Don't compromise on developer experience. Join thousands of developers and trusted companies and power your content with Sanity.io. Free to get started, pay-as-you-go on all plans.