feat: display app version in footer

This commit is contained in:
badblocks 2025-08-11 10:33:38 -07:00
parent d4d84ad0db
commit d6740ec5d0
No known key found for this signature in database
3 changed files with 7 additions and 2 deletions

View file

@ -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/

View file

@ -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>

View file

@ -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",