In order to have Gatsby run a command before building a site in Gatsby Cloud, you'd need to include your script in one of the Gatsby node APIs in gatsby-node.js
.
Most likely, you will want to use either onPreBootstrap
or onPreBuild
as documented here:
You can also learn more about the entire Gatsby build process here: What happens when you run gatsby build?
Comments
0 comments
Please sign in to leave a comment.