From 01c1f53d2c6344b159d6a57cefe5f1bc1b90646d Mon Sep 17 00:00:00 2001 From: m-abe-dev Date: Tue, 1 Oct 2024 00:23:45 +0200 Subject: [PATCH] recovery --- web/src/services/api/projectApi.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/src/services/api/projectApi.ts b/web/src/services/api/projectApi.ts index d99797aa82..02a646eb2f 100644 --- a/web/src/services/api/projectApi.ts +++ b/web/src/services/api/projectApi.ts @@ -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(