diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json index 936e929c4490..6088e13adeda 100644 --- a/packages/twenty-front/package.json +++ b/packages/twenty-front/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true npx vite build && sh ./scripts/inject-runtime-env.sh", + "build": "VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=3000 npx vite build && sh ./scripts/inject-runtime-env.sh", "build:sourcemaps": "VITE_BUILD_SOURCEMAP=true VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=6000 npx nx build", "start:prod": "NODE_ENV=production npx vite --host", "tsup": "npx tsup"