13
// src/utils/http.js
import axios from 'axios';

const axiosInstance = axios.create({
  baseURL: process.env.VUE_APP_API_BASE_URL,
});

export default axiosInstance;''

when import the above module import http from './http' does it create a new axios instance each time? or it is singleton?

pythoniku
  • 3,372
  • 6
  • 22
  • 28

1 Answers1