fix: stamp docker builds with the build hash so stale clients reload (#29832)

This commit is contained in:
G30 2026-09-09 12:11:52 -04:00 • committed by GitHub
parent e4d65d0351
commit babf08e301
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,9 @@ const config = {
try {
return child_process.execSync('git rev-parse HEAD').toString().trim();
} catch {
if (process.env.APP_BUILD_HASH && process.env.APP_BUILD_HASH !== 'dev-build') {
return process.env.APP_BUILD_HASH;
}
// if git is not available, fallback to package.json version
// or current timestamp
try {