Skip to content

Commit

Permalink
fix: enable FAST_DEV/DEV_SSR to avoid OOM when starting Gatsby dev se…
Browse files Browse the repository at this point in the history
…rver

Replaces/reverts "fix: limit parallelization of build to avoid OOM error during 'develop'"
  • Loading branch information
bradenmacdonald committed Dec 17, 2024
1 parent c5ca0a5 commit e6336f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions www/gatsby-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,7 @@ export default {
// Match the location of the site on github pages if no path prefix is specified
pathPrefix: process.env.PATH_PREFIX || '',
plugins,
flags: {
FAST_DEV: true,
},
};
3 changes: 1 addition & 2 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"scripts": {
"build": "gatsby build --prefix-paths && npm run build-themes && playroom build",
"clean": "gatsby clean",
"develop#note": "echo The GATSBY_CPU_COUNT limits the resources used to avoid an out of memory error on systems with more than 4 CPU cores",
"develop": "npm run build-themes && GATSBY_CPU_COUNT=4 gatsby develop",
"develop": "npm run build-themes && gatsby develop",
"develop:with-theme": "npm run develop",
"lint": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx .",
"start": "npm run develop",
Expand Down

0 comments on commit e6336f5

Please sign in to comment.