Skip to content

Commit

Permalink
build: limit image processing to 2 processes at a time
Browse files Browse the repository at this point in the history
....resizing 10 images at once is not going to end well on a raspberry pi
  • Loading branch information
sbrl committed Jun 4, 2024
1 parent 4f3b579 commit 080a5a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ log_msg "Building website";
# 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
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;

if [[ ! -d "_site" ]]; then
Expand Down

0 comments on commit 080a5a9

Please sign in to comment.