The issue ended up being with puppeeter, heroku has an issue with it, to fix it we have to add a flag to the build.
When Puppeteer is installed, it triggers a download of a large file such as Chrome. Depending on the network, this can cause a build to timeout. We've found that users no longer see timeouts after adding a PUPPETEER_SKIP_DOWNLOAD
config var and setting it to true
. This skips the Chrome download and has improved build time.