Skip to content

Commit 29d889d

Browse files
InfantLabclaude
andcommitted
fix(release): read app version from package.json
The displayed app version was a hard-coded string in nuxt.config.ts that drifted from package.json on every release. Import the package manifest so runtimeConfig.public.appVersion tracks automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 38dfbe0 commit 29d889d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/nuxt.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
2+
import pkg from "./package.json";
3+
24
export default defineNuxtConfig({
35
devtools: {
46
enabled: true,
@@ -41,7 +43,7 @@ export default defineNuxtConfig({
4143
runtimeConfig: {
4244
public: {
4345
appName: "Tada",
44-
appVersion: "0.6.1",
46+
appVersion: pkg.version,
4547
appUrl: process.env["APP_URL"] || "http://localhost:3000",
4648
isCloudMode:
4749
process.env["TADA_CLOUD_MODE"] === "true" ||

0 commit comments

Comments
 (0)