From 380ff6faf336b60eecb2a9dfa1338d7ea07816a7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 6 Aug 2023 03:36:53 +0200 Subject: [PATCH] Fix `useHttpBaseURL` missing /api --- todoblue/src/app/useHttpBaseURL.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todoblue/src/app/useHttpBaseURL.ts b/todoblue/src/app/useHttpBaseURL.ts index 54ff204..b431794 100644 --- a/todoblue/src/app/useHttpBaseURL.ts +++ b/todoblue/src/app/useHttpBaseURL.ts @@ -11,7 +11,7 @@ export function useHttpBaseURL(): string | undefined { useEffect(() => { let url = process.env.NEXT_PUBLIC_TODOBLUE_OVERRIDE_BASE_URL; - if(!url) url = `${window.location.protocol}//${window.location.host}`; + if(!url) url = `${window.location.protocol}//${window.location.host}/api`; console.debug("[useBaseURL] Using base URL:", url); setBaseURL(url); }, []);