From 23a2f81898a3149d28a5f403d334048e1d01d1e3 Mon Sep 17 00:00:00 2001 From: miczek Date: Thu, 15 Oct 2026 03:42:36 +0300 Subject: [PATCH] ci: lower Angular build peak memory on Pi Serialize esbuild/Angular workers and cap the Node heap under the 2GiB Drone step limit so SSR builds trade time for surviving OOM. Co-authored-by: Cursor --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index b62ce90..c5871a1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,6 +15,9 @@ steps: - name: build image: oven/bun:1-alpine environment: + # Serialise Angular workers — lower peak RAM, longer build (Pi-friendly) + NG_BUILD_MAX_WORKERS: "1" + NODE_OPTIONS: "--max-old-space-size=1536" STRAVA_CLIENT_ID: from_secret: strava_client_id STRAVA_REDIRECT_URI: