Skip to content

Commit

Permalink
Fix downloadUiAssets.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aure-olivier committed Jun 20, 2023
1 parent e89beac commit 5e8bb31
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/scripts/downloadUiAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ function checkUrls(baseUrl, path = '') {
resolve('retry');
}
const profile = body;
resolve((profile && profile.includes('window.genesys.wwe.env.GWS_SERVICE_URL')));
// Comment present only on Azure: "Service Discovery Expression and Service URL"
// Comment present only for AWS: "Service Discovery AWS test"
resolve((profile && profile.includes('Service Discovery Expression and Service URL')));
})
}));
}
Expand Down Expand Up @@ -257,7 +259,7 @@ function getGwsApiUri(baseUrl) {
}
}
resolve(gwsApiUri);

})
}))
}
Expand Down Expand Up @@ -420,11 +422,12 @@ async function main() {
console.log("Downloading from", url);

try {
let isSeparatedUIAndServicePlatform;
let isSeparatedUIAndServicePlatform;
isSeparatedUIAndServicePlatform = await checkUrls(url);
if(isSeparatedUIAndServicePlatform === 'retry') {
isSeparatedUIAndServicePlatform= await checkUrls(url, 'ui/wwe/');
}
console.log(`isSeparatedUIAndServicePlatform = ${isSeparatedUIAndServicePlatform}`);
if (isSeparatedUIAndServicePlatform === true) {
gwsUrl = await getGwsApiUri(url);
authUrl = await getAuthURL(gwsUrl, url);
Expand Down

0 comments on commit 5e8bb31

Please sign in to comment.