15
// 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,532
  • 6
  • 23
  • 30

1 Answers1