Skip to content

Commit

Permalink
Merge pull request #634 from adobecom/revert-622-revert-619-revert-61…
Browse files Browse the repository at this point in the history
…3-MWPW-167586

Revert "MWPW-167586 | Helix upgrade fix"
  • Loading branch information
salonijain3 authored Feb 19, 2025
2 parents c562089 + b490aa1 commit ba3f5fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions creativecloud/blocks/unity/unity.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ function getUnityLibs(prodLibs = '/unitylibs') {
return prodLibs;
}
const branch = new URLSearchParams(window.location.search).get('unitylibs') || 'main';
const env = hostname.includes('.hlx.') ? 'hlx' : 'aem';
if (branch.indexOf('--') > -1) return `https://${branch}.${env}.live/unitylibs`;
return `https://${branch}--unity--adobecom.${env}.live/unitylibs`;
if (branch.indexOf('--') > -1) return `https://${branch}.aem.live/unitylibs`;
return `https://${branch}--unity--adobecom.aem.live/unitylibs`;
}

export default async function init(el) {
Expand Down
5 changes: 2 additions & 3 deletions creativecloud/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,8 @@ export const [setLibs, getLibs] = (() => {
}
const branch = new URLSearchParams(window.location.search).get('milolibs') || 'main';
if (branch === 'local') { libs = 'http://localhost:6456/libs'; return libs; }
const env = hostname.includes('.hlx.') ? 'hlx' : 'aem';
if (branch.indexOf('--') > -1) { libs = `https://${branch}.${env}.live/libs`; return libs; }
libs = `https://${branch}--milo--adobecom.${env}.live/libs`;
if (branch.indexOf('--') > -1) { libs = `https://${branch}.aem.live/libs`; return libs; }
libs = `https://${branch}--milo--adobecom.aem.live/libs`;
return libs;
}, () => libs,
];
Expand Down

0 comments on commit ba3f5fd

Please sign in to comment.