From b32884364c9b0e79dfb6f0c72a185cbb7266475f Mon Sep 17 00:00:00 2001 From: Manuel Kasper Date: Wed, 10 May 2023 15:17:41 +0200 Subject: [PATCH] JS version compatibility, remove version number from footer --- .env | 1 + src/components/Footer.vue | 2 +- src/router.js | 2 +- vue.config.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 872f265..a881110 100644 --- a/.env +++ b/.env @@ -3,3 +3,4 @@ VUE_APP_WSS_URL="wss://sotl.as/api" 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://elevation.sotl.as/api" +PUBLIC_PATH=/ diff --git a/src/components/Footer.vue b/src/components/Footer.vue index ecd369f..61af33c 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -16,7 +16,7 @@ export default { name: 'Footer', computed: { version () { - return VERSION + '-' + COMMITHASH.substring(0, 7) + return 'Build ' + COMMITHASH.substring(0, 7) + ' (' + BRANCH + ')' } } } diff --git a/src/router.js b/src/router.js index 5a46e9b..bc8b12a 100644 --- a/src/router.js +++ b/src/router.js @@ -23,7 +23,7 @@ Vue.use(Router) let router = new Router({ mode: 'history', - base: process.env.PUBLIC_PATH ?? '/', + base: process.env.PUBLIC_PATH, routes: [ { path: '/', diff --git a/vue.config.js b/vue.config.js index e908930..15e0adb 100644 --- a/vue.config.js +++ b/vue.config.js @@ -16,5 +16,5 @@ module.exports = { }) ] }, - publicPath: process.env.PUBLIC_PATH ?? '/' + publicPath: process.env.PUBLIC_PATH }