[object Object]

← back to All Designerwallcoverings

preserve public vendor keys while pairing internal sites

59dee87f474ac2c483006f4cffa893ce3eb517b8 · 2026-08-28 08:59:37 -0700 · Steve Abrams

Files touched

Diff

commit 59dee87f474ac2c483006f4cffa893ce3eb517b8
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Fri Aug 28 08:59:37 2026 -0700

    preserve public vendor keys while pairing internal sites
---
 scripts/crawl-microsites.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/crawl-microsites.js b/scripts/crawl-microsites.js
index 0e86543..07fe9cd 100644
--- a/scripts/crawl-microsites.js
+++ b/scripts/crawl-microsites.js
@@ -200,7 +200,9 @@ function mergeSeeds(reg, db, cf, pm2) {
   // (brand slug "pierre-frey" vs slugify("Pierre Frey")="pierrefrey"). Fold the
   // DB-derived twin into the registry entry by vendor so we don't emit a dark duplicate.
   const vendorToSlug = new Map();
-  for (const s of reg) if (s.vendor) vendorToSlug.set(String(s.vendor).toLowerCase(), s.slug);
+  for (const s of reg) {
+    if (s.vendor && s.variant !== 'internal') vendorToSlug.set(String(s.vendor).toLowerCase(), s.slug);
+  }
   // Also fold hyphen/underscore twins (pm2 "andrew-martin" vs CF "andrewmartin") onto one
   // canonical key so a co-located pm2 feed ENRICHES the public twin instead of duplicating it.
   const norm = (v) => String(v || '').toLowerCase().replace(/[^a-z0-9]/g, '');

← 3ae884e keep internal vendor twins distinct in the crawl  ·  back to All Designerwallcoverings  ·  record live vendor pair deployment proof 10fd1a2 →