build: 🔧 limit eleventy-image concurrency

Satori times out if it has to wait too long for an image to process and leaves the open graph image broken/incomplete. Limiting concurrent processes for the eleventy-image plugin prevents this.
This commit is contained in:
Sebin Nyshkim 2025-04-20 11:27:27 +02:00
parent 3080efd63c
commit 31c99021c8

View file

@ -23,6 +23,7 @@ import markdownItFootnote from 'markdown-it-footnote';
import markdownItImageFigures from 'markdown-it-image-figures'; import markdownItImageFigures from 'markdown-it-image-figures';
const MARKDOWNIT_OPTIONS = { html: true, linkify: true, typographer: true }; const MARKDOWNIT_OPTIONS = { html: true, linkify: true, typographer: true };
Image.concurrency = 4;
export default async function (eleventyConfig) { export default async function (eleventyConfig) {
eleventyConfig.addPassthroughCopy('./src/css/prism.css'); eleventyConfig.addPassthroughCopy('./src/css/prism.css');