import Axios from 'axios'; // base url to make requests to the chtabot databse const instance = Axios.create({ baseURL: "" }); export default instance; code example
Example: axios configure base url
axios.defaults.baseURL = '/api/';
axios.defaults.baseURL = '/api/';