Skip to content

Commit 1c46d48

Browse files
Fix ui host for oauth
1 parent 3c6ffeb commit 1c46d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/contentstackHTTPClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ export default function contentstackHttpClient (options) {
7979

8080
let uiHostName, developerHubBaseUrl
8181
if (config.host && (config.host.startsWith('dev') || config.host.startsWith('stag'))) {
82+
uiHostName = config.host.replace('-api.', '-app.')
8283
const transformedHost = config.host
8384
.replace(/^dev\d+/, 'dev')
8485
.replace(/^stag\d+/, 'stag')
85-
uiHostName = transformedHost.replace('-api.', '-app.')
8686
developerHubBaseUrl = `https://${transformedHost.replace('-api.', '-developerhub-api.')}`
8787
} else {
8888
uiHostName = getRegionEndpoint(region, 'application')

0 commit comments

Comments
 (0)