The footer was showing "dev" instead of the commit sha because vite runs inside the Docker build context, which doesn't have .git (only kez-chat/ gets copied in, not the parent .git/). git rev-parse failed in the try/catch and fell back to the "dev" sentinel. Fix: vite.config now resolves the sha from, in order: 1. process.env.BUILD_SHA — set by deploy script 2. ./BUILD_SHA file in web/ — set by deploy script 3. git rev-parse --short HEAD — local dev 4. "dev" — give up Deploy script writes the file before rsync; .gitignored so it doesn't accidentally get committed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
9 lines
195 B
Plaintext
9 lines
195 B
Plaintext
node_modules/
|
|
dist/
|
|
.vite/
|
|
*.tsbuildinfo
|
|
.DS_Store
|
|
# Written by the deploy script so the in-image build can stamp the real
|
|
# commit sha into the footer. Falls back to "dev" if missing.
|
|
BUILD_SHA
|