Jason Tudisco de120f7d6c fix(kez-chat/web): pass build sha into Docker build via BUILD_SHA file
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>
2026-05-27 00:19:12 -06:00
..