Configurable API & Dashboard base path
Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
parent
090db6d4b0
commit
0ec12c7aa7
12 changed files with 253 additions and 50 deletions
|
@ -4,7 +4,7 @@ import { APP } from '../_helpers/APP'
|
|||
|
||||
// Set config defaults when creating the instance
|
||||
const api = axios.create({
|
||||
baseURL: APP.config.apiUrl
|
||||
baseURL: window.APIURL || APP.config.apiUrl
|
||||
})
|
||||
|
||||
export default boot(({ app }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue