better config / install from cli / allow_registration
This commit is contained in:
13
plugins/axios.js
Normal file
13
plugins/axios.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export default function({ $axios, store }) {
|
||||
if (process.server) {
|
||||
console.error('dentro il server ', store.settings )
|
||||
// $axios.defaults.baseurl =
|
||||
} else {
|
||||
// const protocol = window.location.protocol
|
||||
// const hostname = window.location.hostname
|
||||
// const port = 8000
|
||||
// const url = `${protocol}//${hostname}:${port}`
|
||||
$axios.defaults.baseURL = window.location.origin + '/api'
|
||||
console.error('dentro il client !')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user