import axios from 'axios'; const baseURL = process.env.NODE_ENV === 'production' ? 'https://commercel-api.herokuapp.com' : 'http://localhost:3030'; const requests = axios.create({ baseURL }); export const { get, post, put, patch, delete: del } = requests; export default requests;