feat: display app version in footer
This commit is contained in:
parent
d4d84ad0db
commit
d6740ec5d0
3 changed files with 7 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ SHELL ["bash", "-exc"]
|
|||
WORKDIR /app
|
||||
|
||||
# Copy source code (excluding semantic-release artifacts)
|
||||
COPY nuxt.config.ts tsconfig.json tailwind.config.js eslint.config.mjs ./
|
||||
COPY nuxt.config.ts tsconfig.json tailwind.config.js eslint.config.mjs package.json ./
|
||||
COPY app/ ./app/
|
||||
COPY server/ ./server/
|
||||
COPY public/ ./public/
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<p>Copyright © {{ new Date().getFullYear() }}</p>
|
||||
<p class="text-sm opacity-75">v{{ $config.public.version }}</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import pkg from './package.json'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: "2025-05-15",
|
||||
devtools: {
|
||||
|
|
@ -24,7 +26,9 @@ export default defineNuxtConfig({
|
|||
myPhoneNumber: process.env.NUXT_MY_PHONE_NUMBER,
|
||||
superSecretSalt: process.env.NUXT_SUPER_SECRET_SALT,
|
||||
|
||||
public: {},
|
||||
public: {
|
||||
version: pkg.version,
|
||||
},
|
||||
},
|
||||
nitro: {
|
||||
preset: "node-server",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue