Fix test env detect (#94)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-08-03 18:00:36 +00:00
1 parent e9d3311524
commit 4e0c76e117
2 files changed
+8 -1

No files matched your search

@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix test env detect",
"packageName": "@acedatacloud/nexior",
"email": "office@acedata.cloud",
"dependentChangeType": "patch"
}
+1 -1
View File
@@ -1,4 +1,4 @@
const isTest = window.location.origin === 'https://hub.acedata.cloud';
const isTest = window.location.origin === 'https://hub-test.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';