Gatsby Deployment Fails

Hello! I’m trying to deploy a Gatsby v3 app running on Node 14.19.0. The build takes a very long time ~25-30 mins each time and eventually fails with the following output.

8:29:52 PM: Build ready to start
8:29:55 PM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
8:29:55 PM: build-image tag: v4.5.3
8:29:55 PM: buildbot version: 4b36e839b4a8a6b4da7438120b4832cce296b644
8:29:55 PM: Fetching cached dependencies
8:29:55 PM: Failed to fetch cache, continuing with build
8:29:55 PM: Starting to prepare the repo for build
8:29:56 PM: No cached dependencies found. Cloning fresh repo
8:29:56 PM: git clone https://github.com/grahamd711/mp-gatsby-netlify
8:29:57 PM: Preparing Git Reference refs/heads/main
8:29:58 PM: Parsing package.json dependencies
8:29:59 PM: Starting build script
8:29:59 PM: Installing dependencies
8:29:59 PM: Python version set to 2.7
8:29:59 PM: Downloading and installing node v14.19.0...
8:30:00 PM: Downloading https://nodejs.org/dist/v14.19.0/node-v14.19.0-linux-x64.tar.xz...
8:30:00 PM: Computing checksum with sha256sum
8:30:00 PM: Checksums matched!
8:30:03 PM: Now using node v14.19.0 (npm v6.14.16)
8:30:03 PM: Started restoring cached build plugins
8:30:03 PM: Finished restoring cached build plugins
8:30:03 PM: Attempting ruby version 2.7.2, read from environment
8:30:05 PM: Using ruby version 2.7.2
8:30:05 PM: Using PHP version 8.0
8:30:05 PM: Started restoring cached node modules
8:30:05 PM: Finished restoring cached node modules
8:30:05 PM: Installing NPM modules using NPM version 6.14.16
8:31:26 PM: > sharp@0.27.2 install /opt/build/repo/node_modules/sharp
8:31:26 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
8:31:28 PM: info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.5/libvips-8.10.5-linux-x64.tar.br
8:31:31 PM: > node-sass@5.0.0 install /opt/build/repo/node_modules/node-sass
8:31:31 PM: > node scripts/install.js
8:31:31 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v5.0.0/linux-x64-83_binding.node
8:31:31 PM: Download complete
8:31:31 PM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-83/binding.node
8:31:32 PM: Caching binary to /opt/buildhome/.npm/node-sass/5.0.0/linux-x64-83_binding.node
8:31:32 PM: > core-js@2.6.12 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
8:31:32 PM: > node -e "try{require('./postinstall')}catch(e){}"
8:31:32 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
8:31:32 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
8:31:32 PM: > https://opencollective.com/core-js 
8:31:32 PM: > https://www.patreon.com/zloirock 
8:31:32 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
8:31:32 PM: > core-js@3.9.1 postinstall /opt/build/repo/node_modules/core-js
8:31:32 PM: > node -e "try{require('./postinstall')}catch(e){}"
8:31:32 PM: > core-js-pure@3.9.1 postinstall /opt/build/repo/node_modules/core-js-pure
8:31:32 PM: > node -e "try{require('./postinstall')}catch(e){}"
8:31:32 PM: > ejs@2.7.4 postinstall /opt/build/repo/node_modules/ejs
8:31:32 PM: > node ./postinstall.js
8:31:32 PM: Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
8:31:34 PM: > gatsby-telemetry@2.1.0 postinstall /opt/build/repo/node_modules/gatsby-telemetry
8:31:34 PM: > node src/postinstall.js || true
8:31:34 PM: > mozjpeg@7.0.0 postinstall /opt/build/repo/node_modules/mozjpeg
8:31:34 PM: > node lib/install.js
8:31:34 PM:   ✔ mozjpeg pre-build test passed successfully
8:31:35 PM: > pngquant-bin@6.0.0 postinstall /opt/build/repo/node_modules/pngquant-bin
8:31:35 PM: > node lib/install.js
8:31:35 PM:   ✔ pngquant pre-build test passed successfully
8:31:35 PM: > gatsby-cli@3.1.0 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
8:31:35 PM: > node scripts/postinstall.js
8:31:35 PM: > gatsby@3.1.2 postinstall /opt/build/repo/node_modules/gatsby
8:31:35 PM: > node scripts/postinstall.js
8:31:35 PM: > node-sass@5.0.0 postinstall /opt/build/repo/node_modules/node-sass
8:31:35 PM: > node scripts/build.js
8:31:36 PM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-83/binding.node
8:31:36 PM: Testing binary
8:31:36 PM: Binary is fine
8:31:38 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
8:31:38 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
8:31:38 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
8:31:38 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
8:31:38 PM: added 2693 packages from 1389 contributors and audited 2720 packages in 92.12s
8:31:41 PM: 232 packages are looking for funding
8:31:41 PM:   run `npm fund` for details
8:31:41 PM: found 199 vulnerabilities (6 low, 140 moderate, 50 high, 3 critical)
8:31:41 PM:   run `npm audit fix` to fix them, or `npm audit` for details
8:31:41 PM: NPM modules installed
8:31:41 PM: Started restoring cached go cache
8:31:41 PM: Finished restoring cached go cache
8:31:41 PM: go version go1.16.5 linux/amd64
8:31:41 PM: go version go1.16.5 linux/amd64
8:31:41 PM: Installing missing commands
8:31:41 PM: Verify run directory
8:31:42 PM: ​
8:31:42 PM: ────────────────────────────────────────────────────────────────
8:31:42 PM:   Netlify Build                                                 
8:31:42 PM: ────────────────────────────────────────────────────────────────
8:31:42 PM: ​
8:31:42 PM: ❯ Version
8:31:42 PM:   @netlify/build 26.3.5
8:31:42 PM: ​
8:31:42 PM: ❯ Flags
8:31:42 PM:   baseRelDir: true
8:31:42 PM:   buildId: 621709c0fd0c423c9dff207f
8:31:42 PM:   deployId: 621709c0fd0c423c9dff2081
8:31:42 PM: ​
8:31:42 PM: ❯ Current directory
8:31:42 PM:   /opt/build/repo
8:31:42 PM: ​
8:31:42 PM: ❯ Config file
8:31:42 PM:   /opt/build/repo/netlify.toml
8:31:42 PM: ​
8:31:42 PM: ❯ Context
8:31:42 PM:   production
8:31:42 PM: ​
8:31:42 PM: ❯ Installing plugins
8:31:42 PM:    - @netlify/plugin-gatsby@1.0.3
8:31:59 PM: ​
8:31:59 PM: ❯ Loading plugins
8:31:59 PM:    - @netlify/plugin-gatsby@1.0.3 from Netlify app
8:31:59 PM: ​
8:31:59 PM: ❯ Outdated plugins
8:31:59 PM:    - @netlify/plugin-gatsby@1.0.3: latest version is 2.0.3
8:31:59 PM:      Migration guide: https://ntl.fyi/gatsby-plugin-migration
8:31:59 PM:      To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)
8:32:01 PM: ​
8:32:01 PM: ────────────────────────────────────────────────────────────────
8:32:01 PM:   1. @netlify/plugin-gatsby (onPreBuild event)                  
8:32:01 PM: ────────────────────────────────────────────────────────────────
8:32:01 PM: ​
8:32:01 PM: No Gatsby cache found. Building fresh.
8:32:01 PM: Add `gatsby-plugin-netlify` to `gatsby-config.js` if you would like to support Gatsby redirects. 🎉
8:32:01 PM: ​
8:32:01 PM: (@netlify/plugin-gatsby onPreBuild completed in 39ms)
8:32:01 PM: ​
8:32:01 PM: ────────────────────────────────────────────────────────────────
8:32:01 PM:   2. Build command from Netlify app                             
8:32:01 PM: ────────────────────────────────────────────────────────────────
8:32:01 PM: ​
8:32:01 PM: $ npm run build
8:32:02 PM: > mparticle@0.1.0 build /opt/build/repo
8:32:02 PM: > gatsby build
8:32:05 PM: success open and validate gatsby-configs - 0.124s
8:32:06 PM: success load plugins - 1.166s
8:32:06 PM: success onPreInit - 0.139s
8:32:06 PM: success initialize cache - 0.008s
8:32:07 PM: success copy gatsby files - 0.092s
8:32:07 PM: success onPreBootstrap - 0.020s
8:32:07 PM: success gatsby-source-prismic - create types - 0.012s
8:32:07 PM: success createSchemaCustomization - 0.090s
8:32:07 PM: Object 'integrations': Better provide a schema!
8:32:18 PM: success gatsby-source-prismic - fetch documents - 10.954s
8:33:09 PM: success Downloading remote files - 20.192s - 1712/1712 84.79/s
8:33:09 PM: success gatsby-source-prismic - create nodes - 50.906s
8:33:09 PM: success gatsby-source-prismic - write out type paths - 0.121s
8:33:09 PM: success Checking for changed pages - 0.000s
8:33:09 PM: success source and transform nodes - 62.585s
8:33:28 PM: success building schema - 18.744s
8:35:20 PM: info Total nodes: 13949, SitePage nodes: 1454 (use --verbose for breakdown)
8:35:20 PM: success createPages - 111.477s
8:35:20 PM: success Checking for changed pages - 0.001s
8:35:28 PM: success createPagesStatefully - 8.344s
8:35:32 PM: success update schema - 4.047s
8:35:32 PM: success onPreExtractQueries - 0.003s
8:35:40 PM: success extract queries from components - 8.434s
8:35:40 PM: success write out redirect data - 0.012s
8:35:45 PM: success Build manifest and related icons - 2.508s
8:35:45 PM: success onPostBootstrap - 4.947s
8:35:45 PM: info bootstrap finished - 223.817s
8:35:52 PM: success run static queries - 6.207s - 13/13 2.09/s
8:44:19 PM: success run page queries - 507.197s - 1473/1473 2.90/s
8:44:19 PM: success write out requires - 0.528s
8:57:47 PM: success Building production JavaScript and CSS bundles - 807.115s
8:57:48 PM: success Rewriting compilation hashes - 0.007s
8:59:53 PM: Build exceeded maximum allowed runtime
8:59:58 PM: info deleted directory at /opt/build/repo/src/assets/images/icons/pricing
8:59:58 PM: info deleted directory at /opt/build/repo/src/assets/images/home
8:59:58 PM: info deleted directory at /opt/build/repo/src/assets/images/icons
8:59:58 PM: info deleted directory at /opt/build/repo/src/assets/images/logos/services
8:59:58 PM: info deleted directory at /opt/build/repo/src/assets/images/logos
8:59:58 PM: info deleted directory at /opt/build/repo/src/assets/images/integration-benefits
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/use-cases-search.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/arrow-black.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/arrow-download.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/arrow-external.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/arrow-icon-up.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/arrow-small.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/arrow-white.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/check-tab-icon.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/check.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/checkmark-green.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/expander-arrow.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/external-arrow.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/external-link.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/facebook.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/google-plus.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/green-check-icon.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/icon-1.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/icon-2.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/icon-3.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/icon-chevron-down.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/instagram.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/linkedin.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/location.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/medium.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/plus-icon.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/search-close.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/search.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/twitter-quote.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/twitter.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/youtube.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/pricing/blue-check.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/pricing/check-mint.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/pricing/minus-inactive.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/pricing/plus-blue.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/pricing/plus-inactive.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/icons/pricing/tooltip-inactive.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/arrow.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home-hero.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/mparticle-logo-white.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/mparticle-logo.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/android-icon.png
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/apple-icon.png
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/black-dots.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/demo-dots.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/js-icon.png
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/pause-btn.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/play-btn.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/poster-3.jpg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/home/poster-4.jpg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/Jet_logo.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/SeatGeek_Blue.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/airbnb.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/bleacher-report.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/branch.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/braze.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/chickfila.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/ea.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/facebook.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/gilt.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/goat.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/google-analytics.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/jet.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/jetblue.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/king.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/lululemon.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/mailchimp.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/mixpanel.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/mparticle-usecase.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/nbcuniversal.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/overstock.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/pinterest.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/postmates.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/qlik.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/seatgeek.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/snapchat.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/spg.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/spotify.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/tealium.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/ticketmaster.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/ticketmaster_logo.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/turner.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/twitter.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/venmo.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/venmo_logo_blue.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/via.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/zendesk.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/adobe.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/amazon-redshift.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/amplitude.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/appsflyer.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/button.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/looker.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/oracle.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/radar.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/sailthru.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/salesforce-marketing-cloud.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/logos/services/urbanairship.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/integration-benefits/Benefit1.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/integration-benefits/Benefit2.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/integration-benefits/Benefit3.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/integration-benefits/Benefit4.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/integration-benefits/Benefit5.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/integration-benefits/Benefit6.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/integration-benefits/Benefit7.svg
8:59:58 PM: info deleted file at /opt/build/repo/src/assets/images/integration-benefits/Icon-Benefit-SendNoCode.svg
8:59:58 PM: info deleted directory at /opt/build/repo/src/assets/images
9:00:19 PM: error Generating SSR bundle failed
9:00:19 PM: ENOENT: no such file or directory, mkdir '/opt/build/repo'
9:00:19 PM: not finished Building HTML renderer - 146.435s
9:00:20 PM: npm ERR! code ELIFECYCLE
9:00:20 PM: npm ERR! errno 1
9:00:20 PM: npm ERR! mparticle@0.1.0 build: `gatsby build`
9:00:20 PM: npm ERR! Exit status 1
9:00:20 PM: npm ERR!
9:00:20 PM: npm ERR! Failed at the mparticle@0.1.0 build script.
9:00:20 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
9:00:20 PM: npm WARN Local package.json exists, but node_modules missing, did you mean to install?
9:00:20 PM: npm ERR! A complete log of this run can be found in:
9:00:20 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-02-24T05_00_20_106Z-debug.log
9:00:20 PM: Execution timed out after 30m21.496983451s
9:00:20 PM: Error running command: Command did not finish within the time limit
9:00:20 PM: Failing build: Failed to build site
9:00:20 PM: Finished processing build request in 30m25.240231653s

Our build settings:

We have also tried, gatsby build

In addition, CI=' ' gatsby build with an environment variable setting set to false. Referenced here.

The site is fairly large with many archive pages, but I’m surprised to see the Error running command: Command did not finish within the time limit error as well.

Please advise on any updates that we need to make for our build settings. Thank you for any insight or help!

Our folder structure is as follows:

I’m wondering as to why that’s surprising. You say the site is large and that it fails with time limit error. To me, that sounds reasonable, doesn’t it?

I’ve updated the site’s time limit to 45 minutes. I think that should be enough for your site? Let us know if not.

Hi @hrishikesh thank you very much for the follow up and for increasing the time limit to 45 mins. The build has succeeded just under the time limit.

The reason I was surprised is due to the build times for the same site on Gatsby Cloud. We are generating static builds in the 2-8 min range. Even with the cache, Netlify is taking ~15 mins.

Overall, we have Total nodes: 14109, SitePage nodes: 1455 . In terms of site build size, is this on the upper range that you see from other customers?

Is your current default time limit set to 30 minutes for all plans (both paid and unpaid)?

Appreciate your support and advice!

Hey @grahamd711,

Unfortunately, I haven’t personally used or explored Gatsby Cloud, so I don’t know how exactly it works. From what I know, it defers the generation of images outside of the build process, but I’m not 100% sure about that. That could be something that can cut down on build times.

It’s a big site, but definitely not on the upper limit. My personal experience with Gatsby has always been a slow site builder (I haven’t used Gatsby since long), so I won’t be surprised if that site takes so long to build. It also depends on how optimised your build process is, what all your build process is doing, etc.

However, the default build time limit is 15 mins (for all plans). Our build pods starts shutting your build down after 15 mins, however, in some cases, you might be able to squeeze in a few extra minutes until the build is completely terminated.