← back to Ventura Claw Leads
Add root /favicon.{ico,svg} route (static is mounted under /static, so browser /favicon.ico 404'd)
564a1152dde1cc8f1f7d369bc581f51356fc6423 · 2026-05-31 18:47:22 -0700 · Steve Abrams
Files touched
Diff
commit 564a1152dde1cc8f1f7d369bc581f51356fc6423
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sun May 31 18:47:22 2026 -0700
Add root /favicon.{ico,svg} route (static is mounted under /static, so browser /favicon.ico 404'd)
---
server.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server.js b/server.js
index 45600ab..d8d8478 100644
--- a/server.js
+++ b/server.js
@@ -18,6 +18,8 @@ const claimRoutes = require('./routes/claim');
const adminRoutes = require('./routes/admin');
const app = express();
+
+app.get(['/favicon.ico','/favicon.svg'], (req, res) => res.sendFile(require('path').join(__dirname, 'public', req.path.slice(1))));
const PORT = parseInt(process.env.PORT || '9789', 10);
const IS_PROD = process.env.NODE_ENV === 'production';
← 61d2e0e Add per-site favicon (kills /favicon.ico 404)
·
back to Ventura Claw Leads
·
(newest)