export const getApiBaseUrl = (): string => { if (window.location.protocol === 'https:') { return 'https://cmsapi.rit-services.in'; } return `http://${window.location.hostname}:8080`; };