diff --git a/.env b/.env index 1ad5f4e..27e4489 100644 --- a/.env +++ b/.env @@ -2,3 +2,4 @@ VUE_APP_API_URL="https://api.sotl.as" VUE_APP_WSS_URL="wss://api.sotl.as" VUE_APP_PHOTOS_URL="https://photos.sotl.as" VUE_APP_PHOTOS_ORIGINAL_URL="https://sotlas-photos.s3.eu-central-003.backblazeb2.com/original" +VUE_APP_ELEVATION_API_URL="https://ele.sotl.as/api" diff --git a/src/components/Coordinates.vue b/src/components/Coordinates.vue index e46eb8e..d9e340c 100644 --- a/src/components/Coordinates.vue +++ b/src/components/Coordinates.vue @@ -103,7 +103,7 @@ export default { if (!this.latitude || !this.longitude || !this.showElevation) { return } - axios.post('https://ele.sotl.as/api', [[this.latitude, this.longitude]]) + axios.post(process.env.VUE_APP_ELEVATION_API_URL, [[this.latitude, this.longitude]]) .then(result => { this.elevation = Math.round(result.data[0]) }) diff --git a/src/components/MapDraw.vue b/src/components/MapDraw.vue index 6c71255..fc94292 100644 --- a/src/components/MapDraw.vue +++ b/src/components/MapDraw.vue @@ -396,7 +396,7 @@ export default { } this.loading = true - axios.post('https://ele.sotl.as/api', eleCoordinates) + axios.post(process.env.VUE_APP_ELEVATION_API_URL, eleCoordinates) .then(result => { this.chartData = result.data.map((elevation, i) => { return {