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",