summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-29 17:37:31 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-29 17:37:31 -0300
commitf309e58e1d3d849610473dd0bf21e970e965d9eb (patch)
tree7bc3df090cea4636a62cd8720ec296c7ad01d99a
parenta1dced443951bd62e2852f5e96ba3f8a4dc45ed4 (diff)
downloadwebsite-jesusalva/migration.tar.gz
website-jesusalva/migration.tar.bz2
website-jesusalva/migration.tar.xz
website-jesusalva/migration.zip
Change to use Environment variables for Vault PyAPI instead of hardcoding itjesusalva/migration
-rw-r--r--.env1
-rw-r--r--src/views/Migration.vue2
2 files changed, 2 insertions, 1 deletions
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",