Skip to content

Commit

Permalink
Fix test env detect (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: AceDataCloud <[email protected]>
  • Loading branch information
Germey and AceDataCloud authored Aug 3, 2024
1 parent e9d3311 commit 4e0c76e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix test env detect",
"packageName": "@acedatacloud/nexior",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion src/constants/endpoint.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 4e0c76e

Please sign in to comment.