Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

chore: set node build memory

mertmit73894ff85020
diff --git a/.github/workflows/pre-build-for-playwright.yml b/.github/workflows/pre-build-for-playwright.yml
index b1fc586e23..f3f82d18c9 100644
--- a/.github/workflows/pre-build-for-playwright.yml
+++ b/.github/workflows/pre-build-for-playwright.yml
@@ -26,6 +26,7 @@ jobs:
- name: build frontend (nc-gui)
working-directory: ./packages/nc-gui
run: |
+ export NODE_OPTIONS="--max-old-space-size=8192"
pnpm run build
timeout-minutes: 20
- name: Create build archive
diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml
index befecfcb49..a12332b1fb 100644
--- a/.github/workflows/release-docker.yml
+++ b/.github/workflows/release-docker.yml
@@ -101,7 +101,7 @@ jobs:
- name: upgrade packages for nightly build or pr build
if: ${{ github.event.inputs.targetEnv == 'DEV' || inputs.targetEnv == 'DEV' }}
run: |
- export NODE_OPTIONS="--max_old_space_size=16384"
+ export NODE_OPTIONS="--max_old_space_size=8192"
NOCODB_SDK_PKG_NAME=nocodb-sdk-daily
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js &&
pnpm --filter=${NOCODB_SDK_PKG_NAME} install --ignore-scripts --no-frozen-lockfile --ignore-workspace && pnpm --filter=${NOCODB_SDK_PKG_NAME} run build &&
diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml
index 23f2c8ae18..e747e221b5 100644
--- a/.github/workflows/release-npm.yml
+++ b/.github/workflows/release-npm.yml
@@ -53,7 +53,7 @@ jobs:
node-version: 22.12.0
registry-url: "https://registry.npmjs.org"
- run: |
- export NODE_OPTIONS="--max_old_space_size=16384"
+ export NODE_OPTIONS="--max_old_space_size=8192"
NOCODB_SDK_PKG_NAME=nocodb-sdk
# If targetEnv is DEV, then use nocodb-sdk-daily package
if [[ ${{ github.event.inputs.targetEnv || inputs.targetEnv }} == 'DEV' ]]; then
diff --git a/build-local-docker-image.sh b/build-local-docker-image.sh
index 95cd8781f9..7d232fb623 100755
--- a/build-local-docker-image.sh
+++ b/build-local-docker-image.sh
@@ -31,7 +31,7 @@ function install_dependencies() {
function build_gui() {
# build nc-gui
- export NODE_OPTIONS="--max_old_space_size=16384"
+ export NODE_OPTIONS="--max_old_space_size=8192"
# generate static build of nc-gui
cd ${SCRIPT_DIR}/packages/nc-gui
pnpm run generate || ERROR="gui build failed"
diff --git a/packages/nc-gui/package.json b/packages/nc-gui/package.json
index 951ae1989a..f351940768 100644
--- a/packages/nc-gui/package.json
+++ b/packages/nc-gui/package.json
@@ -31,8 +31,8 @@
"coverage": "vitest -c test/vite.config.ts run --coverage",
"build:copy": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/",
"build:copy:publish": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/; pnpm publish ../nc-lib-gui",
- "ci:run": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; pnpm install; pnpm run build; NUXT_PAGE_TRANSITION_DISABLE=true NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &",
- "ci:start": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; NUXT_PAGE_TRANSITION_DISABLE=true NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &",
+ "ci:run": "export NODE_OPTIONS=\"--max_old_space_size=8192\"; pnpm install; pnpm run build; NUXT_PAGE_TRANSITION_DISABLE=true NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &",
+ "ci:start": "export NODE_OPTIONS=\"--max_old_space_size=8192\"; NUXT_PAGE_TRANSITION_DISABLE=true NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &",
"preinstall": "npx only-allow pnpm",
"postinstall": "nuxt prepare"
},