[object Object]

← back to Embroideredwallpaper

hero-4grid: relocate json from data/ to public/ for Express static

d932f602d283132b615cdcedae559a1ac9d11c56 · 2026-05-14 08:54:27 -0700 · Steve

Files touched

Diff

commit d932f602d283132b615cdcedae559a1ac9d11c56
Author: Steve <steve@designerwallcoverings.com>
Date:   Thu May 14 08:54:27 2026 -0700

    hero-4grid: relocate json from data/ to public/ for Express static
---
 public/hero-4grid.js             | 2 +-
 {data => public}/hero-4grid.json | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/hero-4grid.js b/public/hero-4grid.js
index 1bc244c..c495e6f 100644
--- a/public/hero-4grid.js
+++ b/public/hero-4grid.js
@@ -19,7 +19,7 @@
   window.__hero4GridLoaded = true;
 
   var CFG = window.Hero4GridConfig || {};
-  var URL = CFG.url || '/data/hero-4grid.json';
+  var URL = CFG.url || '/hero-4grid.json';
 
   function inject(cellEls, grid) {
     // Switch hero mode
diff --git a/data/hero-4grid.json b/public/hero-4grid.json
similarity index 100%
rename from data/hero-4grid.json
rename to public/hero-4grid.json

← f0792fb 4-grid hero: drop-in script + crop CSS + initial 4 newest pr  ·  back to Embroideredwallpaper  ·  fix: wire sort select to /api/products, niche-filtered facet 7f26520 →