import { computed } from 'vue'

export function useApiMode() {
  const baseUrl = import.meta.env.VITE_API_URL ?? ''
  const isGatewayProxy = computed(() =>
    baseUrl.includes('5081') || import.meta.env.VITE_GATEWAY_MODE === 'true'
  )
  return { isGatewayProxy, baseUrl }
}