Skip to content

Commit

Permalink
Update utils.js (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruchika4 authored Jan 21, 2025
1 parent 21c1280 commit d98ec1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const [setLibs, getLibs] = (() => {
(prodLibs, location) => {
libs = (() => {
const { hostname, search } = location || window.location;
if (!(hostname.includes('.hlx.') || hostname.includes('.aem') || hostname.includes('local'))) return prodLibs;
if (!(hostname.includes('.hlx.') || hostname.includes('.aem.') || hostname.includes('local'))) return prodLibs;
const branch = new URLSearchParams(search).get('milolibs') || 'main';
if (branch === 'local') return 'http://localhost:6456/libs';
return branch.includes('--') ? `https://${branch}.aem.live/libs` : `https://${branch}--milo--adobecom.aem.live/libs`;
Expand Down

0 comments on commit d98ec1a

Please sign in to comment.