← back to Rentv Ad Engine
5x sweep 1: serve branded favicon route (fixes /favicon.ico 404 console error)
cabb3d4c5dc56c1e84fe6b23b18301cd2e0723e9 · 2026-08-07 14:18:44 -0700 · Steve Abrams
Files touched
Diff
commit cabb3d4c5dc56c1e84fe6b23b18301cd2e0723e9
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Fri Aug 7 14:18:44 2026 -0700
5x sweep 1: serve branded favicon route (fixes /favicon.ico 404 console error)
---
server.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/server.js b/server.js
index b12467e..156e653 100644
--- a/server.js
+++ b/server.js
@@ -63,6 +63,15 @@ const server = http.createServer((req, res) => {
videos_total: m.total || (m.videos || []).length, videos_rich: m.rich || 0 });
}
+ // ── favicon (inline branded SVG so browsers don't 404 /favicon.ico) ──
+ if (p === "/favicon.ico" || p === "/favicon.svg") {
+ const svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">' +
+ '<rect width="32" height="32" rx="6" fill="#c8102e"/>' +
+ '<text x="16" y="23" font-family="Arial,Helvetica,sans-serif" font-size="19" font-weight="700" fill="#fff" text-anchor="middle">R</text></svg>';
+ res.writeHead(200, { "Content-Type": "image/svg+xml", "Cache-Control": "public,max-age=86400" });
+ return res.end(svg);
+ }
+
// ── static ──
let file = p === "/" ? "index.html" : p.replace(/^\/+/, "");
const fp = path.join(PUB, file);
← 74b0fd7 analytics: sponsor-tenure Gantt (first->last episode per cli
·
back to Rentv Ad Engine
·
5x: sweep logs + REPORT (favicon 404 fixed, clean twice) e1a34a2 →