Commit 2526da4
committed
Fix build version environment variables for Vite
- Change REACT_APP_* to VITE_APP_* prefix (required by Vite)
- Update Dockerfile to use VITE_APP_VERSION, VITE_APP_BUILD_TIME, VITE_APP_COMMIT_SHA
- Update GitHub Actions workflow with correct environment variable names
- Add fallback to package.json version (0.1.0) if env vars not available
- Improve timestamp formatting from ISO string
- Add debug logging for environment variables
This fixes the 'vunknown' issue in the build version indicator.
The version should now show: 'v1.0.0 • abc1234 • 2025-09-20 14:04'1 parent 7459184 commit 2526da4
File tree
3 files changed
+39
-15
lines changed- .github/workflows
- editor
- src/utils
3 files changed
+39
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
18 | 42 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
22 | 46 | | |
23 | 47 | | |
24 | 48 | | |
| |||
0 commit comments