From df9076277f500e4815f27c81c6d6635e7c002f3e Mon Sep 17 00:00:00 2001 From: Ratko Zagorac Date: Mon, 28 Oct 2024 10:26:36 +0100 Subject: [PATCH] Update setLibs for prod --- edsdme/scripts/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edsdme/scripts/utils.js b/edsdme/scripts/utils.js index 1080635..bbb811c 100644 --- a/edsdme/scripts/utils.js +++ b/edsdme/scripts/utils.js @@ -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`;