fix: frontend docker build

This commit is contained in:
Michael H.
2026-08-20 23:57:28 +02:00
parent 0bd341371a
commit 7e611c7678
2 changed files with 3 additions and 6 deletions
+2 -5
View File
@@ -3,7 +3,7 @@ name: Frontend Docker
on: on:
push: push:
branches: branches:
# - main - main
- prod - prod
paths: paths:
- 'apps/frontend/**/*' - 'apps/frontend/**/*'
@@ -70,14 +70,11 @@ jobs:
working-directory: ./apps/frontend working-directory: ./apps/frontend
run: pnpm install 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 - name: Build frontend
working-directory: ./apps/frontend working-directory: ./apps/frontend
run: pnpm exec nuxi build run: pnpm web;build
env: env:
NITRO_PRESET: node-server NITRO_PRESET: node-server
NODE_OPTIONS: '--max-old-space-size=8192 --max-semi-space-size=64'
BUILD_ENV: ${{ steps.meta.outputs.env }} BUILD_ENV: ${{ steps.meta.outputs.env }}
CF_PAGES_BRANCH: ${{ github.ref_name }} CF_PAGES_BRANCH: ${{ github.ref_name }}
CF_PAGES_COMMIT_SHA: ${{ github.sha }} CF_PAGES_COMMIT_SHA: ${{ github.sha }}
+1 -1
View File
@@ -3,7 +3,7 @@
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "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", "dev": "nuxi dev",
"generate": "nuxi generate", "generate": "nuxi generate",
"preview": "nuxi preview", "preview": "nuxi preview",