Skip to content

Commit

Permalink
Increase allowed memory during build, also in Radix (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Oct 6, 2023
1 parent 1b0f6a4 commit 570c547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/webviz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ jobs:

- name: 🏗️ Build JavaScript bundle
working-directory: ./frontend
run: |
# Building wsc requires increasing memory allocated to Node
export NODE_OPTIONS="--max_old_space_size=4096"
npm run build
run: npm run build

- name: 🕵️ Check code style, linting & dependencies
working-directory: ./frontend
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite --host",
"build": "tsc && vite build",
"build": "tsc && NODE_OPTIONS='--max-old-space-size=8192' vite build",
"preview": "vite preview",
"generate-api": "openapi --input http://localhost:5000/openapi.json --output ./src/api --client axios --name ApiService --postfixModels _api",
"typecheck": "tsc --noEmit",
Expand Down

0 comments on commit 570c547

Please sign in to comment.