Skip to content

Commit

Permalink
uses proper domain to determine config loading
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rugh <[email protected]>
  • Loading branch information
sirugh committed Sep 16, 2024
1 parent 5c6ad40 commit 40fe81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 40fe81e

Please sign in to comment.