Hi, @shawnmarcotte and @jonsully. I am humbled as I’m just following along behind the accurate answers @jonsully has given.
I also want to point out this particular statement:
Netlify Community forums probably aren’t the place for that level of implementation-specific and detailed dev question to which I dug into your very specific code, but hopefully that helps you moving forward.
Our support team also won’t troubleshoot custom code (only Netlify specific issues and questions). You are free to ask questions here about topics like this one (topics which are not specific to Netlify), but our support team won’t be able to answer those types of questions.
While other community members might answer here (like @jonsully did), you may find answers to these questions more quickly by asking in a more specific community for the topic (like this one).
To summarize, your questions are welcome here but asking a GatsbyJS specific question on a GatsbyJS forum might receive faster answers.