← back to Momentum Landing
TK-11438: migrate build script postgres connections to unix socket
a03da34dd55a14cd38be50f627d2ef0464faf930 · 2026-09-15 04:08:03 -0700 · steve@designerwallcoverings.com
Files touched
M scripts/build-products-json.js
Diff
commit a03da34dd55a14cd38be50f627d2ef0464faf930
Author: steve@designerwallcoverings.com <steve@designerwallcoverings.com>
Date: Tue Sep 15 04:08:03 2026 -0700
TK-11438: migrate build script postgres connections to unix socket
---
scripts/build-products-json.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/build-products-json.js b/scripts/build-products-json.js
index a462dd1..87ad31f 100644
--- a/scripts/build-products-json.js
+++ b/scripts/build-products-json.js
@@ -24,7 +24,7 @@ const PW = (() => {
} catch { /* fall through */ }
return process.env.PGPASSWORD || 'DW2024!';
})();
-const pool = new Pool({ host: '127.0.0.1', port: 5432, user: 'dw_admin', database: 'dw_unified', password: PW });
+const pool = new Pool({ host: process.env.PGHOST || (process.platform === 'darwin' ? '/tmp' : '127.0.0.1'), port: 5432, user: 'dw_admin', database: 'dw_unified', password: PW });
// Map an ai_color_name / color_name -> canonical color bucket (drives color filter + color sort).
const BUCKET = {
← 274638d TK-11438: migrate postgres pool to unix socket (darwin fallb
·
back to Momentum Landing
·
(newest)