Use an environment variable for the Drupal URL
This commit is contained in:
parent
0bc9d45d0a
commit
4e939fb9a6
3 changed files with 3 additions and 2 deletions
1
.env
Normal file
1
.env
Normal file
|
@ -0,0 +1 @@
|
||||||
|
VUE_APP_DRUPAL_URL=
|
|
@ -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…
Add table
Add a link
Reference in a new issue