From 570c5479fe00fd1f2c6b6cc1c82513d84cf4d49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= <31612826+anders-kiaer@users.noreply.github.com> Date: Fri, 6 Oct 2023 07:24:28 +0200 Subject: [PATCH] Increase allowed memory during build, also in Radix (#403) --- .github/workflows/webviz.yml | 5 +---- frontend/package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/webviz.yml b/.github/workflows/webviz.yml index a18c1176d..5a43af313 100644 --- a/.github/workflows/webviz.yml +++ b/.github/workflows/webviz.yml @@ -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 diff --git a/frontend/package.json b/frontend/package.json index dc3cd32be..50d30eef6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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",