@@ -2,7 +2,7 @@ export const getDefaultClient = (JansConfigApi) => {
2
2
let defaultClient = JansConfigApi . ApiClient . instance
3
3
defaultClient . timeout = 60000
4
4
const jansauth = defaultClient . authentications [ 'jans-auth' ]
5
- defaultClient =
5
+ defaultClient = window [ 'configApiBaseUrl' ] ||
6
6
process . env . CONFIG_API_BASE_URL ||
7
7
'https://admin-ui-test.gluu.org' . replace ( / \/ + $ / , '' )
8
8
const headers = {
@@ -22,7 +22,7 @@ export const getClient = (JansConfigApi, r_token, r_issuer) => {
22
22
const defaultClient = JansConfigApi . ApiClient . instance
23
23
defaultClient . timeout = 60000
24
24
const jansauth = defaultClient . authentications [ 'oauth2' ]
25
- defaultClient . basePath =
25
+ defaultClient . basePath = window [ 'configApiBaseUrl' ] ||
26
26
process . env . CONFIG_API_BASE_URL ||
27
27
'https://admin-ui-test.gluu.org' . replace ( / \/ + $ / , '' )
28
28
const headers = {
@@ -41,7 +41,7 @@ export const getClientWithToken = (JansConfigApi, token) => {
41
41
const defaultClient = JansConfigApi . ApiClient . instance
42
42
defaultClient . timeout = 60000
43
43
const jansauth = defaultClient . authentications [ 'oauth2' ]
44
- defaultClient . basePath =
44
+ defaultClient . basePath = window [ 'configApiBaseUrl' ] ||
45
45
process . env . CONFIG_API_BASE_URL ||
46
46
'https://admin-ui-test.gluu.org' . replace ( / \/ + $ / , '' )
47
47
const headers = {
0 commit comments