diff --git a/src/lib/utils/apiUrl.ts b/src/lib/utils/apiUrl.ts index 6783bfd..f068734 100644 --- a/src/lib/utils/apiUrl.ts +++ b/src/lib/utils/apiUrl.ts @@ -5,8 +5,9 @@ const LOCALHOST_API = 'http://localhost:30010'; export function buildApiUrl(path: string) { let localhostApi = false; - if (dev) localhostApi = true; - if (browser && window?.location?.href.includes('localhost')) { + if (dev) { + localhostApi = true; + } else if (browser && window?.location?.href.includes('localhost')) { localhostApi = true; }