From 9f30a767c49e66c5a184ea9f4b4e166da5fa8e4c Mon Sep 17 00:00:00 2001 From: James Tsay Date: Tue, 7 Jan 2025 15:06:40 -0800 Subject: [PATCH] Use hlx domain as default --- acrobat/blocks/unity/unity.js | 2 +- acrobat/scripts/scripts.js | 2 +- acrobat/scripts/utils.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;