fix env to process.env lol

preview
Ayush Mukherjee 4 years ago
parent 0c2ce2fc84
commit e203c212f9

@ -99,7 +99,7 @@ export default {
created() { created() {
axios.post("https://cms.aplesports.com/api/collections/get/Members", {}, { axios.post("https://cms.aplesports.com/api/collections/get/Members", {}, {
headers: { headers: {
'Cockpit-Token': env('VUE_APP_CMS_TOKEN') 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN
} }
}).then((res) => { }).then((res) => {
this.members = res.data.entries; this.members = res.data.entries;

@ -65,7 +65,7 @@ export default {
} }
}, { }, {
headers: { headers: {
'Cockpit-Token': env('VUE_APP_CMS_TOKEN') 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN
} }
}) })
.then((res) => { .then((res) => {
@ -93,7 +93,7 @@ export default {
} }
}, { }, {
headers: { headers: {
'Cockpit-Token': env('VUE_APP_CMS_TOKEN') 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN
} }
}) })
.then((res) => { .then((res) => {

@ -170,7 +170,7 @@ export default {
} }
} ,{ } ,{
headers: { headers: {
'Cockpit-Token': env('VUE_APP_CMS_TOKEN') 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN
} }
}) })
.then((res) => { .then((res) => {
@ -179,7 +179,7 @@ export default {
axios.get("https://cms.aplesports.com/api/collections/get/Tournaments", { axios.get("https://cms.aplesports.com/api/collections/get/Tournaments", {
headers: { headers: {
'Cockpit-Token': env('VUE_APP_CMS_TOKEN') 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN
} }
}) })
.then((res2) => { .then((res2) => {

@ -71,7 +71,7 @@ export default {
} }
} ,{ } ,{
headers: { headers: {
'Cockpit-Token': env('VUE_APP_CMS_TOKEN') 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN
} }
}) })
.then((res) => { .then((res) => {

@ -70,7 +70,7 @@ export default {
} }
} ,{ } ,{
headers: { headers: {
'Cockpit-Token': env('VUE_APP_CMS_TOKEN') 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN
} }
}) })
.then((res) => { .then((res) => {

Loading…
Cancel
Save