mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-08 03:08:02 +00:00
fix: stamp docker builds with the build hash so stale clients reload (#29832)
This commit is contained in:
parent
e4d65d0351
commit
babf08e301
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue