From e203c212f9d38a973a4003b461cafaf2b75f81df Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sat, 2 Jan 2021 00:21:02 +0530 Subject: [PATCH] fix env to process.env lol --- src/views/About.vue | 2 +- src/views/Article.vue | 4 ++-- src/views/Home.vue | 4 ++-- src/views/News.vue | 2 +- src/views/Tournaments.vue | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/About.vue b/src/views/About.vue index 12ac7e9..e37e7fc 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -99,7 +99,7 @@ export default { created() { axios.post("https://cms.aplesports.com/api/collections/get/Members", {}, { headers: { - 'Cockpit-Token': env('VUE_APP_CMS_TOKEN') + 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN } }).then((res) => { this.members = res.data.entries; diff --git a/src/views/Article.vue b/src/views/Article.vue index 43043a7..9b6c65e 100644 --- a/src/views/Article.vue +++ b/src/views/Article.vue @@ -65,7 +65,7 @@ export default { } }, { headers: { - 'Cockpit-Token': env('VUE_APP_CMS_TOKEN') + 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN } }) .then((res) => { @@ -93,7 +93,7 @@ export default { } }, { headers: { - 'Cockpit-Token': env('VUE_APP_CMS_TOKEN') + 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN } }) .then((res) => { diff --git a/src/views/Home.vue b/src/views/Home.vue index 3fdebe0..bd40a45 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -170,7 +170,7 @@ export default { } } ,{ headers: { - 'Cockpit-Token': env('VUE_APP_CMS_TOKEN') + 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN } }) .then((res) => { @@ -179,7 +179,7 @@ export default { axios.get("https://cms.aplesports.com/api/collections/get/Tournaments", { headers: { - 'Cockpit-Token': env('VUE_APP_CMS_TOKEN') + 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN } }) .then((res2) => { diff --git a/src/views/News.vue b/src/views/News.vue index 193b95d..367680b 100644 --- a/src/views/News.vue +++ b/src/views/News.vue @@ -71,7 +71,7 @@ export default { } } ,{ headers: { - 'Cockpit-Token': env('VUE_APP_CMS_TOKEN') + 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN } }) .then((res) => { diff --git a/src/views/Tournaments.vue b/src/views/Tournaments.vue index ee32fc6..3c74aed 100644 --- a/src/views/Tournaments.vue +++ b/src/views/Tournaments.vue @@ -70,7 +70,7 @@ export default { } } ,{ headers: { - 'Cockpit-Token': env('VUE_APP_CMS_TOKEN') + 'Cockpit-Token': process.env.VUE_APP_CMS_TOKEN } }) .then((res) => {