Add support for test env (#91)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
9bfb8373ae
commit
fb832578ca
2 files changed
+13
-5
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "add test env support",
|
||||
"packageName": "@acedatacloud/nexior",
|
||||
"email": "office@acedata.cloud",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
export const BASE_URL_PLATFORM = 'https://platform.acedata.cloud';
|
||||
export const BASE_URL_HUB = 'https://hub.acedata.cloud';
|
||||
export const BASE_URL_AUTH = 'https://auth.acedata.cloud';
|
||||
export const BASE_URL_API = 'https://api.acedata.cloud';
|
||||
export const BASE_URL_API2 = 'https://api2.acedata.cloud';
|
||||
const isTest = window.location.origin === 'https://hub.acedata.cloud';
|
||||
|
||||
export const BASE_URL_PLATFORM = isTest ? 'https://platform-test.acedata.cloud' : 'https://platform.acedata.cloud';
|
||||
export const BASE_URL_HUB = isTest ? 'https://hub-test.acedata.cloud' : 'https://hub.acedata.cloud';
|
||||
export const BASE_URL_AUTH = isTest ? 'https://auth-test.acedata.cloud' : 'https://auth.acedata.cloud';
|
||||
export const BASE_URL_API = isTest ? 'https://api-test.acedata.cloud' : 'https://api.acedata.cloud';
|
||||
Reference in new issue
Block a user