Commit 97351b4
fix(version): use runtime config for version display
- Updated nuxt.config.ts to include version 0.3.1 and git hash in public runtime config
- Simplified /api/version endpoint to use runtime config instead of filesystem reads
- Updated Dockerfile to pass GIT_HASH and GIT_SHORT_HASH as build args and env vars
- This fixes the 'vunknown+unknown' issue in production by making version available at build time
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 46671c4 commit 97351b4
3 files changed
Lines changed: 23 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 8 | + | |
21 | 9 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
34 | 14 | | |
35 | 15 | | |
36 | 16 | | |
37 | 17 | | |
38 | 18 | | |
39 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
40 | 22 | | |
41 | 23 | | |
0 commit comments