<NME> main.js
<BEF> import Vue from 'vue'
import './plugins/vee-validate'
import './plugins/vue-cookie'
import './plugins/vue-gettext'
import './filters'
import App from './App.vue'
import router from './router'
import store from './store'
import vuetify from './plugins/vuetify'
import sassStyles from './styles/global.scss' // eslint-disable-line no-unused-vars

Vue.config.productionTip = false

export const bus = new Vue()

fetch(process.env.BASE_URL + 'config.json').then(resp => {
  resp.json().then((config) => {
    Vue.prototype.$config = config
    new Vue({
      router,
      store,
      vuetify,
      render: h => h(App)
    }).$mount('#app')
  })
})

<MSG> Configure baseUrl option for axios only once

<DFF> @@ -8,6 +8,7 @@ import router from './router'
 import store from './store'
 import vuetify from './plugins/vuetify'
 import sassStyles from './styles/global.scss' // eslint-disable-line no-unused-vars
+import repository from './api/repository'
 
 Vue.config.productionTip = false
 
@@ -15,7 +16,13 @@ export const bus = new Vue()
 
 fetch(process.env.BASE_URL + 'config.json').then(resp => {
   resp.json().then((config) => {
+    if (!config.API_BASE_URL) {
+      throw Error('API_BASE_URL is not defined in config.json')
+    }
+    repository.defaults.baseURL = config.API_BASE_URL
+
     Vue.prototype.$config = config
+
     new Vue({
       router,
       store,

Configure baseUrl option for axios only once