DEV Community

Discussion on: Architecting HTTP clients in Vue.js applications for efficient network communication

Collapse
 
itshivat profile image
Albert Hidalgo 🐘

in the axios intance is baseURL not baseUrl


const httpClient = axios.create({
    baseURL: process.env.VUE_APP_BASE_URL,
    headers: {
        "Content-Type": "application/json",
        // anything you want to add to the headers
    }
});

Thanks!

Collapse
 
haxzie profile image
Musthaq Ahamad

Thanks for letting me know 😉✨

Collapse
 
nop33 profile image
nop33.eth

If you could update the post, that'd be great! I was banging my head for a bit until I figured out the typo :)