Update local development API base URL to use 'localhost'; change server port to 80 for consistency

This commit is contained in:
bobbert committed 2026-04-06 15:18:59 +01:00
1 parent 51ed0bc8b6
commit d9fc161d26
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ const path = require('path');
// --- Configuration --- // --- Configuration ---
const PORT = process.env.PORT || 3000; const PORT = process.env.PORT || 80;
const DATA_DIR = path.join(__dirname, 'data'); const DATA_DIR = path.join(__dirname, 'data');
// --- Data Helpers --- // --- Data Helpers ---
+1 -1
View File
@@ -2,7 +2,7 @@ import Constants from 'expo-constants';
const getBaseUrl = () => { const getBaseUrl = () => {
const host = Constants.expoGoConfig?.debuggerHost; const host = Constants.expoGoConfig?.debuggerHost;
if (host) return 'http://192.168.8.100:3000'; if (host) return 'http://localhost:3000';
return 'http://api.bobby.ip-ddns.com'; return 'http://api.bobby.ip-ddns.com';
}; };