<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Debugging on Wilhelm Maritz</title><link>https://wjmaritz.dev/tags/debugging/</link><description>Recent content in Debugging on Wilhelm Maritz</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 23 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://wjmaritz.dev/tags/debugging/index.xml" rel="self" type="application/rss+xml"/><item><title>Hugo's module.mounts quietly replaced my static directory</title><link>https://wjmaritz.dev/posts/hugo-mounts-static/</link><pubDate>Thu, 23 Jul 2026 00:00:00 +0000</pubDate><guid>https://wjmaritz.dev/posts/hugo-mounts-static/</guid><description>&lt;p>This site had a bug that survived several deploys unnoticed: the whole site worked, except that the OpenGraph card, the image that link previews show when you paste a URL into WhatsApp or LinkedIn, returned 404 in production. Browsers never load that file when you visit a page, so nothing looked broken. Every build was green. The file was in the repository. And the URL was dead.&lt;/p>
&lt;p>If you want the ending first: &lt;strong>declaring any entry under &lt;code>module.mounts&lt;/code> for a target root replaces Hugo&amp;rsquo;s default mount for that root.&lt;/strong> I had mounted one subfolder of &lt;code>static&lt;/code>, and in doing so had silently unmounted everything else in it.&lt;/p></description></item></channel></rss>