We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6ffeb commit 1c46d48Copy full SHA for 1c46d48
lib/core/contentstackHTTPClient.js
@@ -79,10 +79,10 @@ export default function contentstackHttpClient (options) {
79
80
let uiHostName, developerHubBaseUrl
81
if (config.host && (config.host.startsWith('dev') || config.host.startsWith('stag'))) {
82
+ uiHostName = config.host.replace('-api.', '-app.')
83
const transformedHost = config.host
84
.replace(/^dev\d+/, 'dev')
85
.replace(/^stag\d+/, 'stag')
- uiHostName = transformedHost.replace('-api.', '-app.')
86
developerHubBaseUrl = `https://${transformedHost.replace('-api.', '-developerhub-api.')}`
87
} else {
88
uiHostName = getRegionEndpoint(region, 'application')
0 commit comments