Show the build's version and commit in Settings
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
This commit is contained in:
parent
2e52f1be2c
commit
3ac278835b
4 changed files with 52 additions and 1 deletions
|
|
@ -1,4 +1,8 @@
|
|||
.git
|
||||
# Keep just enough of .git for the build to read the current commit.
|
||||
.git/*
|
||||
!.git/HEAD
|
||||
!.git/refs
|
||||
!.git/packed-refs
|
||||
.claude
|
||||
node_modules
|
||||
.svelte-kit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue