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
+3
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 {