Skip to content

Commit

Permalink
replaced cdn by appHost for generating the rest-preview urls
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj committed Feb 9, 2024
1 parent 7524900 commit cdc182c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contentstack-bootstrap/src/bootstrap/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const envFileHandler = async (
let appHost: string;
const managementAPIHost = region?.cma?.substring('8');
const regionName = region && region.name && region.name.toLowerCase();
previewHost = region?.cda?.substring(8)?.replace('cdn', 'rest-preview');
previewHost = region?.uiHost?.substring(8)?.replace('app', 'rest-preview');
appHost = region?.uiHost?.substring(8);
const isUSRegion = regionName === 'us' || regionName === 'na';
if (regionName !== 'eu' && !isUSRegion) {
Expand Down

0 comments on commit cdc182c

Please sign in to comment.