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
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy source code (excluding semantic-release artifacts)
|
# 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 app/ ./app/
|
||||||
COPY server/ ./server/
|
COPY server/ ./server/
|
||||||
COPY public/ ./public/
|
COPY public/ ./public/
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p>Copyright © {{ new Date().getFullYear() }}</p>
|
<p>Copyright © {{ new Date().getFullYear() }}</p>
|
||||||
|
<p class="text-sm opacity-75">v{{ $config.public.version }}</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
import pkg from './package.json'
|
||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
compatibilityDate: "2025-05-15",
|
compatibilityDate: "2025-05-15",
|
||||||
devtools: {
|
devtools: {
|
||||||
|
|
@ -24,7 +26,9 @@ export default defineNuxtConfig({
|
||||||
myPhoneNumber: process.env.NUXT_MY_PHONE_NUMBER,
|
myPhoneNumber: process.env.NUXT_MY_PHONE_NUMBER,
|
||||||
superSecretSalt: process.env.NUXT_SUPER_SECRET_SALT,
|
superSecretSalt: process.env.NUXT_SUPER_SECRET_SALT,
|
||||||
|
|
||||||
public: {},
|
public: {
|
||||||
|
version: pkg.version,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
nitro: {
|
nitro: {
|
||||||
preset: "node-server",
|
preset: "node-server",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue