From 23d278a04044376156a505eeeae8a099f5523718 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 13 Dec 2024 10:29:36 -0600 Subject: [PATCH] Hardcode to 4 concurrency for Windows testing --- img.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/img.js b/img.js index 3d40fd1..1e7bcf3 100644 --- a/img.js +++ b/img.js @@ -1,5 +1,5 @@ const path = require("node:path"); -const os = require("node:os"); +// const os = require("node:os"); const fs = require("node:fs"); const fsp = fs.promises; const { createHash } = require("node:crypto"); @@ -24,7 +24,7 @@ const GLOBAL_OPTIONS = { widths: ["auto"], formats: ["webp", "jpeg"], // "png", "svg", "avif" - concurrency: os.availableParallelism(), + concurrency: 4, //os.availableParallelism(), urlPath: "/img/", outputDir: "img/",