From 6b0dd0d8e908ef147eda4413a2d0f4c412c05243 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 8 Oct 2026 23:08:48 -0700 Subject: Asset paths are site-absolute: relative ones resolved against a deep page (/feed/…, /nevent1…) and fetched the app's HTML, which broke the coinos community's logo (and would have broken the QR decoder, signer module and language packs there). Dev server serves the app icons. The live Concord delivery test is gone: it posted "delivery test" messages into the real coinos #general MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- dev.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dev.js') diff --git a/dev.js b/dev.js index 4f9ab0c..fb46a72 100644 --- a/dev.js +++ b/dev.js @@ -63,6 +63,10 @@ Bun.serve({ ? new Response(file, { headers: { 'content-type': 'image/webp', 'cache-control': NO_STORE } }) : new Response('Not found', { status: 404 }); } + if (/^\/icon(-maskable)?(-\d+)?\.(png|svg)$/.test(path)) { + const file = Bun.file('static' + path); + if (await file.exists()) return new Response(file, { headers: { 'cache-control': NO_STORE } }); + } const loc = path.match(/^\/locales\/([a-z]{2})\.json$/); if (loc) { const f = Bun.file('src/locales/' + loc[1] + '.json'); -- cgit v1.2.3