diff --git a/README.md b/README.md index 7528b16..dcb2839 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ matrix/ - Management room: `#management:matrix.lotusguild.org` (`!mEvR5fe3jMmzwd-FwNygD72OY_yu8H3UP_N-57oK7MI`) - Bot account: `@draupnir:matrix.lotusguild.org` (power level 100 in all protected rooms and the Lotus Guild space) - Subscribed ban lists: `#community-moderation-effort-bl:neko.dev`, `#matrix-org-coc-bl:matrix.org` -- Rebuild: `NODE_OPTIONS="--max-old-space-size=768" npx tsc --project tsconfig.json` +- Rebuild: `NODE_OPTIONS="--max_old_space_size=6144" npm run build` - Healthz endpoint: `http://10.10.10.24:8081/healthz` (200 = healthy, 418 = disconnected) - Abuse reporting endpoint: `POST http://10.10.10.24:8080/_matrix/draupnir/1/report/{roomId}/{eventId}` - Audit DBs: `/data/storage/user-restriction-audit-log.db`, `/data/storage/room-audit-log.db` @@ -406,7 +406,7 @@ chmod 600 /etc/cinny-monitor.env **Cinny-build webhook token** (for LotusBot `!cinny-update`): stored in `deploy/hooks-lxc106.json` (`cinny-build` hook, header `X-Build-Token`). LotusBot must POST to `http://10.10.10.6:9000/hooks/cinny-build` with this header. -**Why 2GB RAM:** Vite's build process OOM-killed at 1GB. 896MB Node heap + OS overhead requires at least 1.5GB; 2GB gives headroom. +**Why 8GB RAM:** Vite's build process needs ~6GB Node heap (`--max_old_space_size=6144`) for the rendering-chunks phase. Previously at 4GB — OOM killed during render. --- diff --git a/cinny/lotus-build.sh b/cinny/lotus-build.sh index 439c068..216d933 100644 --- a/cinny/lotus-build.sh +++ b/cinny/lotus-build.sh @@ -95,7 +95,7 @@ echo "Running npm ci..." npm ci 2>&1 | tail -5 rm -rf "$BUILD_DIR" -export NODE_OPTIONS='--max_old_space_size=896' +export NODE_OPTIONS='--max_old_space_size=6144' echo "Building $LATEST_TAG..." npm run build 2>&1 | tail -10