export default ( url ) : string => { let BASE_URL = '' ; if ( process . env . NODE_ENV === 'development' ) { BASE_URL = url . includes ( '/api/' ) ? '' : '' ; } else { BASE_URL = url . includes ( '/api/' ) ? '' : '' ; } return BASE_URL ; } ;