← back to All Designerwallcoverings
auto-save: 2026-07-07T20:32:33 (2 files) — config/known-subdomains.json scripts/crawl-microsites.js
59f752cda0ca59ced3cfb96702ccb0befa943565 · 2026-07-07 20:32:37 -0700 · Steve Abrams
Files touched
M config/known-subdomains.jsonM scripts/crawl-microsites.js
Diff
commit 59f752cda0ca59ced3cfb96702ccb0befa943565
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Jul 7 20:32:37 2026 -0700
auto-save: 2026-07-07T20:32:33 (2 files) — config/known-subdomains.json scripts/crawl-microsites.js
---
config/known-subdomains.json | 2 +-
scripts/crawl-microsites.js | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/config/known-subdomains.json b/config/known-subdomains.json
index 3ccb406..04d93fa 100644
--- a/config/known-subdomains.json
+++ b/config/known-subdomains.json
@@ -46,7 +46,7 @@
"knownProject": "~/Projects/dw-vendor-microsites/vendors/pierre_frey_fabric",
"note": "Pierre Frey FABRICS samples viewer at pierrefreyfabrics.designerwallcoverings.com (dw-vendor-microsites). Serves pierre_frey_fabric_catalog (~5,370 fabrics from pierrefrey.com/en/fabrics, quote-only, product_type Fabric). Distinct display vendor 'Pierre Frey Fabrics' so it does NOT dedup-merge with the wallcovering pierre-frey entry. Overnight onboard in progress; deploy + DNS when catalog populated.",
"hasMicrosite": true,
- "internalViewer": "http://127.0.0.1:10067 (dw-vendor-microsites pierre_frey_fabric viewer)"
+ "internalViewer": "http://127.0.0.1:10110 (dw-vendor-microsites pierre_frey_fabric viewer)"
}
],
"internal": [
diff --git a/scripts/crawl-microsites.js b/scripts/crawl-microsites.js
index b38ddb7..9b038e4 100644
--- a/scripts/crawl-microsites.js
+++ b/scripts/crawl-microsites.js
@@ -225,10 +225,13 @@ async function crawlOne(seed) {
if (root.body) { rec.title = metaTitle(root.body) || rec.title; rec.hero = ogImage(root.body) || rec.hero; }
} catch (e) { rec.error = e.name === 'TimeoutError' ? 'timeout' : e.message; }
- if (rec.up && (rec.status !== 401 || feedBase)) {
+ // A co-located microsite (feedBase = localhost) is readable even if its PUBLIC host
+ // has no DNS yet (rec.up=false) — so always try the localhost feed when feedBase is set.
+ if (feedBase || (rec.up && rec.status !== 401)) {
const f = await feedProducts(host, feedBase);
if (f.has) {
rec.feed = true;
+ if (feedBase && !rec.up) rec.up = true; // serving locally = available (pre-DNS)
rec.productCount = f.count;
rec.feedTruncated = !!f.truncated;
rec.handles = f.handles; // COMPLETE handle set (membership source)
← 27f01e1 Koroseal live-proven: reject synthesized catalog URLs (false
·
back to All Designerwallcoverings
·
Fix stuck infinite scroll: pump on live sentinel geometry, n 5cdaf8a →