From f309e58e1d3d849610473dd0bf21e970e965d9eb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 29 Aug 2021 17:37:31 -0300 Subject: Change to use Environment variables for Vault PyAPI instead of hardcoding it --- .env | 1 + src/views/Migration.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 44bb2a1..d1cc44c 100644 --- a/.env +++ b/.env @@ -1,5 +1,6 @@ VUE_APP_TITLE=The Mana World (STAGING) VUE_APP_API=https://api.themanaworld.org/api +VUE_APP_PYAPI=https://localhost:13370 # news file VUE_APP_NEWS_JSON=https://themanaworld.github.io/tmwa-server-data/news.json diff --git a/src/views/Migration.vue b/src/views/Migration.vue index 6f82779..1eb5eac 100644 --- a/src/views/Migration.vue +++ b/src/views/Migration.vue @@ -168,7 +168,7 @@ export default class Recovery extends Vue { // ${process.env.VUE_APP_API} // https://api.tmw2.org:13370/ - const req = new Request(`http://localhost:13370/tmwa_auth`, { + const req = new Request(`${process.env.VUE_APP_PYAPI}/tmwa_auth`, { method: "POST", mode: "no-cors", cache: "no-cache", -- cgit v1.2.3-60-g2f50