mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-27 17:56:26 -04:00
fix: stamp docker builds with the build hash so stale clients reload (#29832)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user