import Constants from "expo-constants";

const extra = Constants.expoConfig?.extra ?? {};

/** Android emulator → host machine. Override with .env / app config. */
export const ENV = {
  API_BASE_URL:
    (extra.apiBaseUrl as string | undefined) ||
    process.env.EXPO_PUBLIC_API_BASE_URL ||
    "http://10.0.2.2:8000",
  WS_BASE_URL:
    (extra.wsBaseUrl as string | undefined) ||
    process.env.EXPO_PUBLIC_WS_BASE_URL ||
    "ws://10.0.2.2:8000",
};
