Gatsby Cloud runs
gatsby build for Production Builds and Pull Request Builds.
If you need to run any custom scripts, you can add a
postinstall script to your
package.json and we will run that before or after your packages are installed.
Alternatively, you can also execute custom scripts during the onPostBuild or onPreBuild APIs in gatsby-node.js.
Article is closed for comments.