Open Twoy519 opened 3 years ago
Hey @Twoy519 sorry I never got back to you on this. Since starting to build this out there have been many life and work changes, and honestly I haven't been too involved in the Gatsby ecosystem as I was. I'm sure you have moved on by now but didn't want to leave this hanging. Maybe some time soon I can revisit this plugin.
Also, hope you've been progressing and are enjoying your web dev journey 💪
Hi! Hey this doesn't seem to be a very google-able plugin so thought I'd ask here about how to debug. I am using Sanity as my CMS.
I'm getting data back when I'm on localhost but when I deploy on netlify I'm not getting any data back on the production site?
I'm pretty new to web dev in general so don't know the right things to look for to debug this and was just looking for general advice?
gatsby-config.js
I'm using static queries on pages that are built via
createPages
ingatsby-node.js
. So for example I have just a simple "site directory" list with like the standard "about", "contact" etc. pages. I'm then querying Sanity for the content to put on the pages.So
gatsby-node.js
:Then the
Page.js
Component:So when I see that console.log in my netlify its empty, but this works on localhost.
As I said I'm really new to this so lmk what else I can provide to help debug?