Commit f656801
fix(version): make /api/version recompute per request again
Reverts the freeze-at-startup change from 6fde764 for the route only
(getVersion() and the dirty-untracked detection from that commit are
preserved). In dev source checkouts the badge now updates after a
git commit/pull without needing a service restart. Production npm
installs are unaffected — the npm_package_version short-circuit in
getVersion() returns the cached package.json value, so no extra git
work happens there.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4ee156a commit f656801
2 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | | - | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
0 commit comments