Skip to content

Commit

Permalink
Minimum 8 concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 13, 2024
1 parent 0a5a375 commit 84cab51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions img.js
Original file line number Diff line number Diff line change
@@ -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");
Expand All @@ -24,7 +24,7 @@ const GLOBAL_OPTIONS = {
widths: ["auto"],
formats: ["webp", "jpeg"], // "png", "svg", "avif"

concurrency: 6, //os.availableParallelism(),
concurrency: Math.max(8, os.availableParallelism()),

urlPath: "/img/",
outputDir: "img/",
Expand Down

0 comments on commit 84cab51

Please sign in to comment.