Skip to content

Commit

Permalink
Merge pull request #111 from adobecom/update-setlibs
Browse files Browse the repository at this point in the history
Update setLibs for prod
  • Loading branch information
Ben-Zahler authored Oct 28, 2024
2 parents b4102f5 + df90762 commit 86ca3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edsdme/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const [setLibs, getLibs] = (() => {
libs = (() => {
const { hostname, search } = location || window.location;
// TODO: check if better ways are possible for partners.stage.adobe.com
if (!(hostname.includes('.hlx.') || hostname.includes('local') || hostname === 'partners.stage.adobe.com')) return prodLibs;
if (!(hostname.includes('.hlx.') || hostname.includes('local') || hostname === 'partners.stage.adobe.com' || hostname === 'partners.adobe.com')) return prodLibs;
const branch = new URLSearchParams(search).get('milolibs') || 'main';
if (branch === 'local') return 'http://localhost:6456/libs';
return branch.includes('--') ? `https://${branch}.hlx.live/libs` : `https://${branch}--milo--adobecom.hlx.live/libs`;
Expand Down

0 comments on commit 86ca3ea

Please sign in to comment.