Skip to content

Commit

Permalink
recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
m-abe-dev committed Sep 30, 2024
1 parent 7a75335 commit 01c1f53
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions web/src/services/api/projectApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,7 @@ export default () => {

const getBackendUrl = useCallback(() => {
const apiUrl = window.REEARTH_CONFIG?.api;
if (apiUrl && !apiUrl.includes("localhost")) {
return apiUrl.replace(/\/api$/, "");
} else {
return window.REEARTH_CONFIG?.auth0Audience;
}
return apiUrl?.replace(/\/api$/, "");
}, []);

const useExportProject = useCallback(
Expand Down

0 comments on commit 01c1f53

Please sign in to comment.