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