Show the build's version and commit in Settings #9

Merged
reudy merged 1 commit from build-version into main 2026-09-27 22:08:52 +02:00
Member

Adds a way to check which build you're running: the bottom of the Settings sidebar shows v0.1.0 · abc1234 (hover for the full commit hash and build time). A -dirty suffix appears if it was built from uncommitted changes.

  • vite.config.ts stamps __BUILD__ (package version, git commit, build time) into the bundle at build time.
  • The Docker build image has no git binary, so the config falls back to reading .git/HEAD and the refs files directly. .dockerignore now lets only .git/HEAD, .git/refs and .git/packed-refs into the build context, not the whole .git.
  • Setting GIT_COMMIT in the environment overrides detection.

Not type-checked or built locally (no Node in the environment).

🤖 Generated with Claude Code

https://claude.ai/code/session_01GaoZtJQZwLXkEgWs8twCia

Adds a way to check which build you're running: the bottom of the Settings sidebar shows `v0.1.0 · abc1234` (hover for the full commit hash and build time). A `-dirty` suffix appears if it was built from uncommitted changes. - `vite.config.ts` stamps `__BUILD__` (package version, git commit, build time) into the bundle at build time. - The Docker build image has no `git` binary, so the config falls back to reading `.git/HEAD` and the refs files directly. `.dockerignore` now lets only `.git/HEAD`, `.git/refs` and `.git/packed-refs` into the build context, not the whole `.git`. - Setting `GIT_COMMIT` in the environment overrides detection. Not type-checked or built locally (no Node in the environment). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01GaoZtJQZwLXkEgWs8twCia
agent added 1 commit 2026-09-27 22:08:20 +02:00
vite.config.ts stamps the package version, git commit and build time
into the bundle as __BUILD__, and the Settings sidebar shows
"v0.1.0 · <short sha>" (full sha and build time on hover). The Docker
build has no git binary, so the commit is read from .git/HEAD and the
refs directly; .dockerignore now lets just those files through.
GIT_COMMIT in the environment overrides detection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GaoZtJQZwLXkEgWs8twCia
reudy merged commit 2d415d88a3 into main 2026-09-27 22:08:52 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/Papure#9
No description provided.