build: limit image processing to 2 processes at a time

....resizing 10 images at once is not going to end well on a raspberry pi
This commit is contained in:
Starbeamrainbowlabs 2024-06-05 00:10:08 +01:00
parent 4f3b579db3
commit 080a5a9377
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -94,6 +94,7 @@ log_msg "Building website";
# This causes the eleventy docs site to minify stuff # This causes the eleventy docs site to minify stuff
# Note that this is NOT before the npm install, as npm doesn't install everything if we do that # Note that this is NOT before the npm install, as npm doesn't install everything if we do that
export NODE_ENV=production; export NODE_ENV=production;
export MAX_CONCURRENT=2; # Resizing 10 images at once is not going to end well on a raspberry pi
npm run build; npm run build;
if [[ ! -d "_site" ]]; then if [[ ! -d "_site" ]]; then