Hi,
I want to call backend api by using relative path by axios.get(relativePath) function
But since we cannot access this.$axios... from asyncData function, so axios.baseURL config cannot working here , right ?
How to do that ?
You can. asyncData is passed context and axios can be gotten from context.$axios
Documentation: https://axios.nuxtjs.org/usage#component
Most helpful comment
You can. asyncData is passed context and axios can be gotten from context.$axios