feat: add GIT_COMMIT_HASH support for versioning in Dockerfile and footer

This commit is contained in:
2026-02-17 20:40:44 -05:00
parent f786117cad
commit 5eebea314e
4 changed files with 14 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ declare global {
| undefined;
var turnstileLoaded: (() => void) | undefined;
declare const __APP_VERSION__: string;
declare const COMMIT_HASH: string;
}
export {};
@@ -19,4 +19,13 @@
>
<span class="mx-1">•</span>
v{__APP_VERSION__}
<a
href="https://github.com/whoswhip/Sharpbin/commit/{COMMIT_HASH}"
target="_blank"
rel="noopener noreferrer"
class="text-neutral-400 underline hover:text-neutral-200"
>{(COMMIT_HASH?.length ?? 0) >= 7 && COMMIT_HASH !== 'unknown'
? `(${COMMIT_HASH.slice(0, 7)})`
: ''}</a
>
</div>