← back to Hollywood Wallcoverings
Add root /favicon.{ico,svg} route (static is mounted under /static, so browser /favicon.ico 404'd)
cc222b03f7f21e5d42737db8362ca84289e440f1 · 2026-05-31 18:47:21 -0700 · Steve Abrams
Files touched
Diff
commit cc222b03f7f21e5d42737db8362ca84289e440f1
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sun May 31 18:47:21 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 05c33e0..2aefe74 100644
--- a/server.js
+++ b/server.js
@@ -88,6 +88,8 @@ const DW_SHOPIFY = 'https://designerwallcoverings.com';
const app = express();
+
+app.get(['/favicon.ico','/favicon.svg'], (req, res) => res.sendFile(require('path').join(__dirname, 'public', req.path.slice(1))));
// Security headers via helmet (added 2026-05-04 overnight YOLO loop)
app.use(helmet({ contentSecurityPolicy: false }));
← 3193c50 Add per-site favicon (kills /favicon.ico 404)
·
back to Hollywood Wallcoverings
·
Route product image_url through vendor-neutral image proxy ( d63b1c1 →