Test reducing build memory allocation

This commit is contained in:
Billy Tat
2023-10-10 16:31:04 -07:00
parent f27554c436
commit 6d87bfdf1c
3 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ jobs:
run: yarn install --frozen-lockfile
- name: Build website
env:
NODE_OPTIONS: "--max_old_space_size=6144"
NODE_OPTIONS: "--max_old_space_size=3096"
run: yarn build --no-minify
# Popular action to deploy to GitHub Pages:

View File

@@ -22,5 +22,5 @@ jobs:
run: yarn run remark --quiet --use remark-validate-links --use remark-lint-no-dead-urls ./docs
- name: Test build website
env:
NODE_OPTIONS: "--max_old_space_size=6144"
NODE_OPTIONS: "--max_old_space_size=3096"
run: yarn build --no-minify

View File

@@ -4,8 +4,8 @@
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "NODE_OPTIONS='--max-old-space-size=3096' docusaurus start",
"build": "docusaurus build",
"start": "docusaurus start",
"build": "NODE_OPTIONS='--max-old-space-size=3096' docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",