feat: display version on start page footer

This commit is contained in:
Settel 2022-03-09 09:15:17 +01:00
parent 42fbedaeaa
commit 939b715cd5
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
const fs = require('fs')
const packageJson = fs.readFileSync('./package.json')
const version = JSON.parse(packageJson).version || 0
export default {
ssr: false,
srcDir: 'src/',
@ -22,6 +26,7 @@ export default {
axios: { proxy: true },
publicRuntimeConfig: {
serverBaseUrl: '/',
version,
},
proxy: {
'/api/': 'http://localhost:32039',

View File

@ -1,6 +1,6 @@
{
"name": "knowyt",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"scripts": {
"dev": "nuxt",

View File

@ -5,7 +5,7 @@
<PlayButton />
</div>
<div class="startpage__copyright">
© 2021, Settel
v{{ $config.version }}, © 2021-2022, Settel
</div>
</div>
</template>