[object Object]

← back to Designer Wallcoverings

Scrub hardcoded Shopify theme token from 4 DW-Agents scripts; load from env via dotenv

3a1c86b61b55b8827bedb34a83665dcd0bdbb76a · 2026-06-25 16:41:42 -0700 · Steve

Files touched

Diff

commit 3a1c86b61b55b8827bedb34a83665dcd0bdbb76a
Author: Steve <steve@designerwallcoverings.com>
Date:   Thu Jun 25 16:41:42 2026 -0700

    Scrub hardcoded Shopify theme token from 4 DW-Agents scripts; load from env via dotenv
---
 DW-Agents/dw-agents/agent-task-orchestrator/update-product-template.js | 3 ++-
 DW-Agents/dw-agents/agent-task-orchestrator/update-theme-quantity.js   | 3 ++-
 DW-Agents/dw-agents/update-product-template.js                         | 3 ++-
 DW-Agents/dw-agents/update-theme-quantity.js                           | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/DW-Agents/dw-agents/agent-task-orchestrator/update-product-template.js b/DW-Agents/dw-agents/agent-task-orchestrator/update-product-template.js
index d7af4bd9..ef0197bc 100644
--- a/DW-Agents/dw-agents/agent-task-orchestrator/update-product-template.js
+++ b/DW-Agents/dw-agents/agent-task-orchestrator/update-product-template.js
@@ -1,7 +1,8 @@
+require('dotenv').config({ path: require('path').join(__dirname, '.env') });
 const axios = require('axios');
 
 const SHOPIFY_STORE = 'designer-laboratory-sandbox.myshopify.com';
-const ACCESS_TOKEN = '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';
+const ACCESS_TOKEN = process.env.SHOPIFY_THEME_TOKEN;
 const THEME_ID = 138914332723;
 const API_VERSION = '2024-01';
 
diff --git a/DW-Agents/dw-agents/agent-task-orchestrator/update-theme-quantity.js b/DW-Agents/dw-agents/agent-task-orchestrator/update-theme-quantity.js
index 2ef5f4a7..fdbbb51a 100644
--- a/DW-Agents/dw-agents/agent-task-orchestrator/update-theme-quantity.js
+++ b/DW-Agents/dw-agents/agent-task-orchestrator/update-theme-quantity.js
@@ -1,7 +1,8 @@
+require('dotenv').config({ path: require('path').join(__dirname, '.env') });
 const axios = require('axios');
 
 const SHOPIFY_STORE = 'designer-laboratory-sandbox.myshopify.com';
-const ACCESS_TOKEN = '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';
+const ACCESS_TOKEN = process.env.SHOPIFY_THEME_TOKEN;
 const THEME_ID = 138914332723;
 const API_VERSION = '2024-01';
 
diff --git a/DW-Agents/dw-agents/update-product-template.js b/DW-Agents/dw-agents/update-product-template.js
index d7af4bd9..ef0197bc 100644
--- a/DW-Agents/dw-agents/update-product-template.js
+++ b/DW-Agents/dw-agents/update-product-template.js
@@ -1,7 +1,8 @@
+require('dotenv').config({ path: require('path').join(__dirname, '.env') });
 const axios = require('axios');
 
 const SHOPIFY_STORE = 'designer-laboratory-sandbox.myshopify.com';
-const ACCESS_TOKEN = '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';
+const ACCESS_TOKEN = process.env.SHOPIFY_THEME_TOKEN;
 const THEME_ID = 138914332723;
 const API_VERSION = '2024-01';
 
diff --git a/DW-Agents/dw-agents/update-theme-quantity.js b/DW-Agents/dw-agents/update-theme-quantity.js
index 2ef5f4a7..fdbbb51a 100644
--- a/DW-Agents/dw-agents/update-theme-quantity.js
+++ b/DW-Agents/dw-agents/update-theme-quantity.js
@@ -1,7 +1,8 @@
+require('dotenv').config({ path: require('path').join(__dirname, '.env') });
 const axios = require('axios');
 
 const SHOPIFY_STORE = 'designer-laboratory-sandbox.myshopify.com';
-const ACCESS_TOKEN = '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';
+const ACCESS_TOKEN = process.env.SHOPIFY_THEME_TOKEN;
 const THEME_ID = 138914332723;
 const API_VERSION = '2024-01';
 

← 35fa31e0 cadence: ENABLE DW_DOUBLE_ROLL_MOQ=1 — new York/Brewster rol  ·  back to Designer Wallcoverings  ·  Fix kravet-master-loader: keep YARD-priced wallcoverings (Wi 821c6a88 →