From 7e611c7678023bfc47573f92650a71094e3acb6b Mon Sep 17 00:00:00 2001 From: "Michael H." Date: Thu, 20 Aug 2026 23:57:28 +0200 Subject: [PATCH] fix: frontend docker build --- .github/workflows/frontend-docker.yml | 7 ++----- apps/frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/frontend-docker.yml b/.github/workflows/frontend-docker.yml index d38ba0bf36..0d146d4e43 100644 --- a/.github/workflows/frontend-docker.yml +++ b/.github/workflows/frontend-docker.yml @@ -3,7 +3,7 @@ name: Frontend Docker on: push: branches: - # - main + - main - prod paths: - 'apps/frontend/**/*' @@ -70,14 +70,11 @@ jobs: working-directory: ./apps/frontend run: pnpm install - # nuxi is called directly because `pnpm build` hardcodes NODE_OPTIONS, which would - # drop the semi-space bump that cuts roughly 5% off the build. - name: Build frontend working-directory: ./apps/frontend - run: pnpm exec nuxi build + run: pnpm web;build env: NITRO_PRESET: node-server - NODE_OPTIONS: '--max-old-space-size=8192 --max-semi-space-size=64' BUILD_ENV: ${{ steps.meta.outputs.env }} CF_PAGES_BRANCH: ${{ github.ref_name }} CF_PAGES_COMMIT_SHA: ${{ github.sha }} diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 156c472201..034d70fa26 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -3,7 +3,7 @@ "private": true, "type": "module", "scripts": { - "build": "NODE_OPTIONS=\"--max-old-space-size=8192\" nuxi build", + "build": "NODE_OPTIONS=\"--max-old-space-size=8192 --max-semi-space-size=64\" nuxi build", "dev": "nuxi dev", "generate": "nuxi generate", "preview": "nuxi preview",