From babf08e3018f743b56761b5c85f7984a208eed21 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 9 Sep 2026 12:11:52 -0400 Subject: [PATCH] fix: stamp docker builds with the build hash so stale clients reload (#29832) --- svelte.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svelte.config.js b/svelte.config.js index 82e05951f3..ffb774e723 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -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 {