You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(version): mark dev builds dirty for untracked files; freeze /api/version at startup
git describe --dirty only flags tracked-file modifications, so adding a
new untracked file (e.g. hi.txt) left the version label clean. Now also
runs git status --porcelain and treats any untracked entries as dirty so
local dev builds are visibly distinct from a tagged release.
Also makes /api/version return the version captured at process startup
(matching /api/update-check) instead of re-spawning git describe per
request. The version label now reliably reflects the code that's
actually running — restart the service to pick up new commits/changes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: packages/site/src/content/docs/api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -528,7 +528,7 @@ Returned when the server was started with `--no-password`.
528
528
529
529
#### `GET /api/version`
530
530
531
-
Get the server version.
531
+
Get the server version. The value is captured once at process startup and reflects the running code (not the latest git state on disk). Restart the service to pick up a new version.
0 commit comments