[object Object]

← back to Linenwallpaper

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

ae19bc29b4c28e57693e1aab62056c79fe067ad3 · 2026-05-13 17:50:03 -0700 · Steve

Files touched

Diff

commit ae19bc29b4c28e57693e1aab62056c79fe067ad3
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 178dada..922a9d5 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 85689ab..3f5d9f1 100644
--- a/server.js
+++ b/server.js
@@ -2,6 +2,7 @@
  * LINEN 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');

← 5393593 corner-nav: title-case the brand name even when .ns-name sou  ·  back to Linenwallpaper  ·  favicon: Mag-7-inspired SVG glyph 1d0045a →