Skip to content

Commit 2eb0377

Browse files
committed
increase max space size
1 parent be40f3c commit 2eb0377

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/deploy-production.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ jobs:
109109
run: cat gatsby-config.js
110110

111111
- name: Build
112+
env:
113+
NODE_OPTIONS: --max-old-space-size=8192
112114
run: npm run build
113115

114116
- name: Clean up node_modules # Just to save space

.github/workflows/deploy-staging.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ jobs:
109109
run: cat gatsby-config.js
110110

111111
- name: Build
112+
env:
113+
NODE_OPTIONS: --max-old-space-size=8192
112114
run: npm run build
113115

114116
- name: Clean up node_modules # Just to save space

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
${{ runner.os }}-public-gatsby-main
123123
124124
- run: npm install
125-
- run: GATSBY_HF_CDN_URL="" npm run build
125+
- run: GATSBY_HF_CDN_URL="" NODE_OPTIONS=--max-old-space-size=8192 npm run build
126126

127127
- name: Install Netlify
128128
run: npm install [email protected] -g

0 commit comments

Comments
 (0)