diff --git a/change/@acedatacloud-nexior-0c408115-72b9-47cb-ac5c-5cb496395b57.json b/change/@acedatacloud-nexior-0c408115-72b9-47cb-ac5c-5cb496395b57.json new file mode 100644 index 00000000..d8168520 --- /dev/null +++ b/change/@acedatacloud-nexior-0c408115-72b9-47cb-ac5c-5cb496395b57.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix test env detect", + "packageName": "@acedatacloud/nexior", + "email": "office@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/src/constants/endpoint.ts b/src/constants/endpoint.ts index 903ee950..569ee2c8 100644 --- a/src/constants/endpoint.ts +++ b/src/constants/endpoint.ts @@ -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';