2👍
Consider using something like this
var axios = require('axios');
var axiosInstance = axios.create({
baseURL: process.env.baseUrl || 'https://example.com/foo/bar'
});
module.exports = axiosInstance;
Use this in a conditional statement where you set the enviroment to prod or develop
Source:stackexchange.com