From d6f60f4a81d9714176ef3d8cc60938c01c55b7d6 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Mon, 22 Jun 2026 11:23:43 +0900 Subject: feat: show 5-char git hash next to hamburger for cache-bust detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Vite define bakes __APP_VERSION__ (git rev-parse --short=5 HEAD) at build time — survives bundling into the arch package deploy. Falls back to 'dev' when not in a git repo. Also fixes two noNonNullAssertion warnings in place.ts. --- src/app/App.svelte | 6 ++++++ src/core/metrics/place.ts | 14 ++++++++++---- src/vite-env.d.ts | 3 +++ vite.config.ts | 14 ++++++++++++++ 4 files changed, 33 insertions(+), 4 deletions(-) diff --git a/src/app/App.svelte b/src/app/App.svelte index 3024a44..41e68ef 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -301,6 +301,12 @@ onClose={(id) => store.closeTab(id)} onNewDraft={() => store.newDraft()} /> + + {__APP_VERSION__} +