← back to Hospitalitywallcoverings
fix env wiring — add __dirname-anchored dotenv + dotenv dep so ADMIN_PASS / GEORGE_AUTH actually load
5bf91fc12d27e49d6acdbfde48429683143b1d4a · 2026-05-13 17:50:03 -0700 · Steve
Files touched
M package.jsonM server.js
Diff
commit 5bf91fc12d27e49d6acdbfde48429683143b1d4a
Author: Steve <steve@designerwallcoverings.com>
Date: Wed May 13 17:50:03 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 61d3b38..7838589 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 9f84639..5b60fe2 100644
--- a/server.js
+++ b/server.js
@@ -2,6 +2,7 @@
* HOSPITALITY WALLCOVERINGS — DW family vertical (contract-grade for hotels, restaurants & healthcare)
* Curated slice from live designerwallcoverings.com Shopify catalog.
*/
+try { require('dotenv').config({ path: require('path').join(__dirname, '.env') }); } catch (e) {}
const express = require('express');
const helmet = require('helmet');
const path = require('path');
← e29e187 corner-nav: title-case the brand name even when .ns-name sou
·
back to Hospitalitywallcoverings
·
favicon: Mag-7-inspired SVG glyph 0e763a8 →