mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-08 03:00:20 +00:00
Update local development API base URL to use 'localhost'; change server port to 80 for consistency
This commit is contained in:
1 parent
51ed0bc8b6
commit
d9fc161d26
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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 ---
|
||||||
|
|||||||
@@ -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';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user