DEV Community

Discussion on: How to use Axios interceptors to handle API error responses

Collapse
 
anantaw81 profile image
anantaw81

this is help, but need changes.
don't need to export const customAxios at top when you exported at bottom of file.
baseUrl changed to baseURL

Collapse
 
darkmavis1980 profile image
Alessio Michelini

If you look well, that meant to be in different files, to make it reusable ;-)
But you are right about baseURL