Skip to content

Commit b8eabda

Browse files
committed
max old space size increase for frontend build
1 parent 3a4b054 commit b8eabda

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN rm -rf src/frontend/src/tests
1212
RUN yarn install;
1313

1414
RUN yarn build:shared
15-
RUN export NODE_OPTIONS=--max_old_space_size=4096 && yarn build:frontend:dev
15+
RUN yarn build:frontend:dev
1616

1717
FROM nginx:alpine
1818

src/frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
},
7272
"scripts": {
7373
"start": "vite --force",
74-
"build": "vite build",
75-
"build:dev": "vite build --mode development",
74+
"build": "NODE_OPTIONS='--max-old-space-size=4096' vite build",
75+
"build:dev": "NODE_OPTIONS='--max-old-space-size=4096' vite build --mode development",
7676
"test": "vitest"
7777
},
7878
"browserslist": {

0 commit comments

Comments
 (0)