← back to Wallsandfabrics
fix env wiring — add __dirname-anchored dotenv + dotenv dep so ADMIN_PASS / GEORGE_AUTH actually load
8dbba671c15c5c2cb1fd509a093ff75f05cad323 · 2026-05-13 17:50:07 -0700 · Steve
Files touched
M package.jsonM server.js
Diff
commit 8dbba671c15c5c2cb1fd509a093ff75f05cad323
Author: Steve <steve@designerwallcoverings.com>
Date: Wed May 13 17:50:07 2026 -0700
fix env wiring — add __dirname-anchored dotenv + dotenv dep so ADMIN_PASS / GEORGE_AUTH actually load
---
package.json | 3 ++-
server.js | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/package.json b/package.json
index cd89121..56e91f8 100644
--- a/package.json
+++ b/package.json
@@ -8,6 +8,7 @@
},
"dependencies": {
"express": "^4.21.0",
- "helmet": "^8.1.0"
+ "helmet": "^8.1.0",
+ "dotenv": "^17.4.2"
}
}
diff --git a/server.js b/server.js
index 4a698e5..c07d2e4 100644
--- a/server.js
+++ b/server.js
@@ -2,6 +2,7 @@
* Walls & Fabrics — combo storefront for DW wallcoverings + fabrics + murals + trims.
* Curated slice of the live Designer Wallcoverings catalog (dw_unified).
*/
+try { require('dotenv').config({ path: require('path').join(__dirname, '.env') }); } catch (e) {}
const express = require('express');
const helmet = require('helmet');
const path = require('path');
← 1ec29b5 polish: add 'How matched-set browsing works' 3-step section
·
back to Wallsandfabrics
·
snapshot: site.config.json rails field from stage-1 catalog 33f3b27 →