From 7b4d62d80c86b1d0145218bb0bf12232a2815f4a Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Mon, 6 Apr 2026 15:24:36 +0100 Subject: [PATCH] Remove dynamic base URL handling; set API base URL to production server --- src/components/API/API.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/API/API.js b/src/components/API/API.js index bc929d8..b6d1ab3 100644 --- a/src/components/API/API.js +++ b/src/components/API/API.js @@ -1,12 +1,4 @@ -import Constants from 'expo-constants'; - -const getBaseUrl = () => { - const host = Constants.expoGoConfig?.debuggerHost; - if (host) return 'http://localhost:3000'; - return 'http://api.bobby.ip-ddns.com'; -}; - -export const API_BASE_URL = getBaseUrl(); +export const API_BASE_URL = 'http://api.bobby.ip-ddns.com'; const API = {}; API.get = (endpoint) => callFetch(endpoint, 'GET');