mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
fix: frontend docker build
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user