[object Object]

← back to Fabricwallpaper

fix env wiring — add __dirname-anchored dotenv + dotenv dep so ADMIN_PASS / GEORGE_AUTH actually load

74c0d43384f2e4b1aec39f7ec310e2c168f67060 · 2026-05-13 17:50:02 -0700 · Steve

Files touched

Diff

commit 74c0d43384f2e4b1aec39f7ec310e2c168f67060
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed May 13 17:50:02 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 2e1c6b4..afe0878 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 63f60be..ddeed8f 100644
--- a/server.js
+++ b/server.js
@@ -2,6 +2,7 @@
  * FABRIC WALLPAPER — DW family vertical
  * 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');

← bc97a91 corner-nav: title-case the brand name even when .ns-name sou  ·  back to Fabricwallpaper  ·  favicon: Mag-7-inspired SVG glyph 83b81b7 →