import Constants from 'expo-constants';

// For development, use your machine's IP address instead of localhost
// Example: http://192.168.1.50:5000
const DEV_URL = 'http://10.0.2.2:5000'; // Android emulator default loopback

export const API_BASE = Constants.expoConfig?.extra?.apiUrl || DEV_URL;
export const SOCKET_URL = `${API_BASE}/hubs/chat`;
