Skip to content

Commit 338cd80

Browse files
committed
Reduce memory allocation for Gatsby development and build scripts
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 66cd2e7 commit 338cd80

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ site:
2727

2828
## Run layer5.io on your local machine. Alternate method.
2929
site-fast:
30-
NODE_OPTIONS=--max-old-space-size=12288 gatsby develop
30+
NODE_OPTIONS=--max-old-space-size=8192 gatsby develop
3131

3232
## Build layer5.io on your local machine.
3333
build:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"url": "https://layer5.io"
1111
},
1212
"scripts": {
13-
"build": "cross-env NODE_OPTIONS=--max-old-space-size=12288 gatsby build",
13+
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 gatsby build",
1414
"clean": "gatsby clean && rimraf node_modules",
15-
"develop": "cross-env NODE_OPTIONS=--max-old-space-size=12288 env-cmd -f .env.development gatsby develop",
15+
"develop": "cross-env NODE_OPTIONS=--max-old-space-size=8192 env-cmd -f .env.development gatsby develop",
1616
"dev": "npm run develop",
1717
"start": "npm run develop",
1818
"serve": "gatsby serve",

0 commit comments

Comments
 (0)