Skip to content

Commit

Permalink
Use hlx domain as default
Browse files Browse the repository at this point in the history
  • Loading branch information
TsayAdobe committed Jan 7, 2025
1 parent 6a2dbb3 commit 9f30a76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion acrobat/blocks/unity/unity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}

Expand Down
2 changes: 1 addition & 1 deletion acrobat/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
};

Expand Down
2 changes: 1 addition & 1 deletion acrobat/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9f30a76

Please sign in to comment.