| | |
| | | function getAuthToken () { |
| | | return localStorage.getItem(ELocalStorageKey.Token) |
| | | } |
| | | |
| | | console.log(import.meta.env.VITE_API_URL, 'request.ts') |
| | | const instance = axios.create({ |
| | | // withCredentials: true, |
| | | headers: { |
| | |
| | | instance.interceptors.request.use( |
| | | config => { |
| | | config.headers[ELocalStorageKey.Token] = localStorage.getItem(ELocalStorageKey.Token) |
| | | config.baseURL = CURRENT_CONFIG.baseURL |
| | | config.baseURL = import.meta.env.VITE_API_URL |
| | | // config.headers[REQUEST_ID] = uuidv4() |
| | | // config.baseURL = CURRENT_CONFIG.baseURL |
| | | return config |