From d9fc161d263ab39c885bcbb760c354fd97144386 Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Mon, 6 Apr 2026 15:18:59 +0100 Subject: [PATCH] Update local development API base URL to use 'localhost'; change server port to 80 for consistency --- server/server.js | 2 +- src/components/API/API.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/server.js b/server/server.js index 1653266..9f3df41 100644 --- a/server/server.js +++ b/server/server.js @@ -4,7 +4,7 @@ const path = require('path'); // --- Configuration --- -const PORT = process.env.PORT || 3000; +const PORT = process.env.PORT || 80; const DATA_DIR = path.join(__dirname, 'data'); // --- Data Helpers --- diff --git a/src/components/API/API.js b/src/components/API/API.js index 761588f..bc929d8 100644 --- a/src/components/API/API.js +++ b/src/components/API/API.js @@ -1,8 +1,8 @@ import Constants from 'expo-constants'; const getBaseUrl = () => { - const host = Constants.expoGoConfig?.debuggerHost; - if (host) return 'http://192.168.8.100:3000'; + const host = Constants.expoGoConfig?.debuggerHost; + if (host) return 'http://localhost:3000'; return 'http://api.bobby.ip-ddns.com'; };