diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index ea47a310..d7dfcc4e 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -27,7 +27,6 @@ runs: env: BUILD_FOLDER: ${{ inputs.folder }} BASE: ${{ inputs.base }} - NODE_OPTIONS: --max-old-space-size=4096 run: | cd "$BUILD_FOLDER" yarn install diff --git a/Dockerfile b/Dockerfile index 49438a06..ca70d39a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ COPY . . COPY .env.build .env RUN yarn add --dev @babel/plugin-proposal-decorators RUN yarn typecheck -RUN yarn build +RUN yarn build:highmem RUN npm prune --production FROM node:16-buster diff --git a/package.json b/package.json index 897f44e4..5805001c 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "dev": "node scripts/setup_assets.js --check && vite", "pull": "node scripts/setup_assets.js", "build": "rimraf build && node scripts/setup_assets.js --check && vite build", + "build:highmem": "NODE_OPTIONS='--max-old-space-size=4096' yarn build", "preview": "vite preview", "lint": "eslint src/**/*.{js,jsx,ts,tsx}", "fmt": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",