Why Gatsby & Sanity?
As I've spent more time developing, one thing I have been doing more often is building personal sites for other...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks needed a reminder on what I did to get this setup with Gatsby before. One thing to note in your instructions
sanity graphQL deploy
needs to be lowercasesanity graphql deploy
. And finally your importingimport sp from './sponsor';
but your referencing it is sponsor lower down so it should beimport sponsor from './sponsor';
Also I think you should be runninggatsby develop
not build, that's generally left for when your hosting your site, or if you need to check specific build things like lighthouse tests.Yes thanks! I made these changes
If anyone is getting issues on step 9 when running "gatsby develop" (such as Gatsby, React, or Sanity Types not found or missing) this is related to step 5 when the gatsby-source-sanity is installed. Some users have been having issues with NPM, but running the same via yarn seems to resolve and produce working builds for now.
More info here: github.com/gatsbyjs/gatsby/issues/...
This is exactly what I needed. Thanks!
Thanks for this, I was looking for a simple explanation of how to mess with Sanity and you checked all the right boxes!
The time it took me to read this and get it set up and running vs. the days I spent configuring WordPress to be a headless CMS. I'm kinda pissed.
Thanks for this excellent guide Ryan!
Of course! Love Sanity. Hope others can benefit.
Thanks Ryan! I appreciate the article!
What about Gatsby build time benchmark compared to Hugo?