diff --git a/acrobat/blocks/unity/unity.js b/acrobat/blocks/unity/unity.js index 5ae9c9f8..542665dd 100644 --- a/acrobat/blocks/unity/unity.js +++ b/acrobat/blocks/unity/unity.js @@ -99,7 +99,7 @@ function getUnityLibs(prodLibs = '/unitylibs') { // eslint-disable-next-line compat/compat const branch = new URLSearchParams(search).get('unitylibs') || 'main'; if (branch === 'main' && hostname === 'www.stage.adobe.com') return prodLibs; - const env = hostname.includes('.hlx.') ? 'hlx' : 'aem'; + const env = hostname.includes('.aem.') ? 'aem' : 'hlx'; return `https://${branch}${branch.includes('--') ? '' : '--unity--adobecom'}.${env}.live/unitylibs`; } diff --git a/acrobat/scripts/scripts.js b/acrobat/scripts/scripts.js index 7428f12e..29627cde 100644 --- a/acrobat/scripts/scripts.js +++ b/acrobat/scripts/scripts.js @@ -28,7 +28,7 @@ const setLibs = (prodLibs, location = window.location) => { const branch = new URLSearchParams(search).get('milolibs') || 'main'; if (branch === 'main' && hostname === 'www.stage.adobe.com') return '/libs'; if (branch === 'local') return 'http://localhost:6456/libs'; - const env = hostname.includes('.hlx.') ? 'hlx' : 'aem'; + const env = hostname.includes('.aem.') ? 'aem' : 'hlx'; return `https://${branch}${branch.includes('--') ? '' : '--milo--adobecom'}.${env}.live/libs`; }; diff --git a/acrobat/scripts/utils.js b/acrobat/scripts/utils.js index d311f323..4012c3f4 100644 --- a/acrobat/scripts/utils.js +++ b/acrobat/scripts/utils.js @@ -30,7 +30,7 @@ export const [setLibs, getLibs] = (() => { const branch = new URLSearchParams(search).get('milolibs') || 'main'; if (branch === 'main' && hostname === 'www.stage.adobe.com') return '/libs'; if (branch === 'local') return 'http://localhost:6456/libs'; - const env = hostname.includes('.hlx.') ? 'hlx' : 'aem'; + const env = hostname.includes('.aem.') ? 'aem' : 'hlx'; return `https://${branch}${branch.includes('--') ? '' : '--milo--adobecom'}.${env}.live/libs`; })(); return libs;