<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss/styles.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Herwig Teufer · Small Print</title><description>Short notes on things I picked up along the way.</description><link>https://teufer.dev/</link><language>en</language><atom:link href="https://teufer.dev/til/rss.xml" rel="self" type="application/rss+xml"/><item><title>Astro can serve a custom 404 on Cloudflare Workers</title><link>https://teufer.dev/til/cloudflare-404/</link><guid isPermaLink="true">https://teufer.dev/til/cloudflare-404/</guid><description>Cloudflare Workers static assets return a bare 404 unless you name a page for missing URLs. Setting not_found_handling to 404-page in wrangler.jsonc serves the…</description><pubDate>Tue, 10 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Cloudflare Workers static assets return a bare 404 unless you name a page for missing URLs. Setting &lt;code&gt;not_found_handling&lt;/code&gt; to &lt;code&gt;404-page&lt;/code&gt; in &lt;code&gt;wrangler.jsonc&lt;/code&gt; serves the built &lt;code&gt;dist/404.html&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;jsonc&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;assets&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;: {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;  &quot;directory&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;./dist&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;  &quot;not_found_handling&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;404-page&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content:encoded><category>astro</category><category>cloudflare</category></item></channel></rss>