Use an environment variable for the Drupal URL
This commit is contained in:
parent
0bc9d45d0a
commit
4e939fb9a6
|
@ -30,7 +30,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
const baseUrl = 'http://drupaltestcamp.docksal'
|
const baseUrl = process.env.VUE_APP_DRUPAL_URL
|
||||||
|
|
||||||
axios.get(`${baseUrl}/jsonapi/node/session`)
|
axios.get(`${baseUrl}/jsonapi/node/session`)
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
|
|
|
@ -69,7 +69,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseUrl = 'http://drupaltestcamp.docksal'
|
const baseUrl = process.env.VUE_APP_DRUPAL_URL
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
Loading…
Reference in a new issue