diff --git a/.gitignore b/.gitignore index dc24894..979299d 100644 --- a/.gitignore +++ b/.gitignore @@ -182,4 +182,5 @@ docs/_book test/ /package-lock.json -/yarn.lock \ No newline at end of file +/yarn.lock +/public/env.js \ No newline at end of file diff --git a/index.html b/index.html index 8a98ae3..2e151b8 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@
+ diff --git a/public/env.sample.js b/public/env.sample.js new file mode 100644 index 0000000..fc95691 --- /dev/null +++ b/public/env.sample.js @@ -0,0 +1,6 @@ +const config = { + documentserver_key: '', + baseurl: '', + url_imprint: '', + url_privacy: '' +}; diff --git a/src/components/Register.vue b/src/components/Register.vue index 9622b5a..a8a6673 100644 --- a/src/components/Register.vue +++ b/src/components/Register.vue @@ -254,7 +254,7 @@ function login() { } } toast("registration in progress..."); - axios.post('https://dev.lauf-fuer-kaya.de/api/runners/register', postdata) + axios.post(`${config.baseurl}api/runners/register`, postdata) .then((response) => { response = response.data; const token = response.token;