Skip to content

Commit eb0243e

Browse files
authored
Merge pull request #21 from SafeEscape-org/lastDay
Last day
2 parents 61ff97f + 791b0ab commit eb0243e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/core/constants/api_constants.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,16 @@ class ApiConstants {
1717
static const String firebaseIOSAppId = '1:841617839404:ios:ecd856ac48e978983c4889';
1818
static const String firebaseIOSBundleId = 'com.example.disasterManagement';
1919

20-
// Socket Server Configuration
21-
// If running on emulator, use 10.0.2.2 to connect to host machine
22-
// If running on physical device, use the actual server IP
23-
static const String socketServerIP = '172.16.18.240'; // Your server IP
24-
static const int socketServerPort = 5000;
20+
// Backend Server Configuration
21+
// Updated to use hosted backend URL
22+
static const String backendBaseUrl = 'https://safescape-backend-167333024201.asia-south1.run.app';
2523
static const int socketTimeoutMs = 20000;
2624

2725
// Get the full socket server URL
28-
static String get socketServerUrl => 'http://$socketServerIP:$socketServerPort';
26+
static String get socketServerUrl => backendBaseUrl;
2927

3028
// Base URL for all API calls
31-
static String get baseUrl => socketServerUrl;
29+
static String get baseUrl => backendBaseUrl;
3230

3331
// Weather API - Update to match the correct endpoint
3432
static String get weatherApiBaseUrl => '$baseUrl/api/alerts/weather';

0 commit comments

Comments
 (0)