From cd8a218afb7daf6e84ee5f36d5572e779766905c Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 18 Feb 2026 16:10:55 +0100 Subject: [PATCH] fix: exclude .cache/og from watcher to prevent build loop OG image generation writes to .cache/og/ which the watcher detects as file changes, triggering another build that runs OG generation again in an infinite loop. --- eleventy.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eleventy.config.js b/eleventy.config.js index 537c4b9..223a01e 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -42,6 +42,8 @@ export default function (eleventyConfig) { eleventyConfig.watchIgnores.add("/app/data/site/**"); eleventyConfig.watchIgnores.add("_pagefind"); eleventyConfig.watchIgnores.add("_pagefind/**"); + eleventyConfig.watchIgnores.add(".cache/og"); + eleventyConfig.watchIgnores.add(".cache/og/**"); // Configure markdown-it with linkify enabled (auto-convert URLs to links) const md = markdownIt({