feat: display version on start page footer
This commit is contained in:
parent
42fbedaeaa
commit
939b715cd5
@ -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',
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "knowyt",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
|
@ -5,7 +5,7 @@
|
||||
<PlayButton />
|
||||
</div>
|
||||
<div class="startpage__copyright">
|
||||
© 2021, Settel
|
||||
v{{ $config.version }}, © 2021-2022, Settel
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user