File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff 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' ;
You can’t perform that action at this time.
0 commit comments