From 9254487c2a8a648f5fe6eff718e6cfd457f88372 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Wed, 1 Apr 2026 10:04:56 +0200 Subject: [PATCH] fix: remove duplicate OG image generation in build script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build:og was running before eleventy, then eleventy.before ran it again — two full generation passes per build. Since eleventy.before handles OG generation, the standalone pre-step is redundant. Also fix build:og path: was passing .cache (parent dir) which after the ogDir rename wrote PNGs to the wrong location. Now uses OG_CACHE_DIR env var with .cache/og as fallback, matching eleventy.config.js behaviour. Co-Authored-By: Claude Sonnet 4.6 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d645711..9c10803 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Eleventy theme for Indiekit — IndieWeb-ready personal website", "type": "module", "scripts": { - "build:og": "node lib/og-cli.js content .cache 'giersig.'", - "build": "npm run build:og && eleventy", + "build:og": "node lib/og-cli.js content ${OG_CACHE_DIR:-.cache/og} 'giersig.'", + "build": "eleventy", "dev": "eleventy --serve --watch", "build:css": "postcss css/tailwind.css -o css/style.css", "check:upstream-widgets": "node scripts/check-upstream-widget-drift.mjs",