Added runtimeConfig and used it for appVersion in the footer
This commit is contained in:
parent
3897072e27
commit
52b255df65
4 changed files with 30 additions and 4 deletions
|
|
@ -1,8 +1,17 @@
|
|||
import { readFileSync } from "fs";
|
||||
import { resolve } from "path";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
|
||||
const packageJsonContent = JSON.parse(readFileSync(resolve(__dirname, "package.json"), "utf-8"));
|
||||
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: "2025-07-15",
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
appVersion: packageJsonContent.version,
|
||||
},
|
||||
},
|
||||
app: {
|
||||
head: {
|
||||
htmlAttrs: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue