From 40fe81e820550e5d876a48d1041297ea7eb935c6 Mon Sep 17 00:00:00 2001 From: Stephen Rugh Date: Mon, 16 Sep 2024 15:34:38 -0500 Subject: [PATCH] uses proper domain to determine config loading Signed-off-by: Stephen Rugh --- scripts/configs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/configs.js b/scripts/configs.js index dc6a5a53f9..054d12d111 100644 --- a/scripts/configs.js +++ b/scripts/configs.js @@ -10,7 +10,7 @@ const ALLOWED_CONFIGS = ['prod', 'stage', 'dev']; export const calcEnvironment = () => { const { href } = window.location; let environment = 'prod'; - if (href.includes('.hlx.page')) { + if (href.includes('.aem.page')) { environment = 'stage'; } if (href.includes('localhost')) {