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.
This commit is contained in:
Ricardo
2026-02-18 16:10:55 +01:00
parent db1b922943
commit cd8a218afb

View File

@@ -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({