In a small Vue application I'm working on there is code like this:
this.axios.post('https://localhost:8000/api/auth/login',.......).
The https://localhost:8000 needs to change after deploying to a server since the server side of the application will be hosted at a different IP address/port. I want to define something like a BASE_URL that can be read from a configuration file or something like that, which means the above code would change to something like:
this.axios.post(`${BASE_URL}/api/auth/login`)
What's the best way to do this within Vue.js? Initially baseUrl sounded promising, but that doesn't seem to be what I need.