feat(dashboard): show build git SHA in header + profile page

The version label now renders 'v0.5.86 (<shortsha>)' when the flake build
injects NEXT_PUBLIC_GIT_SHA (git commit identity of the deployed artifact),
so any running dashboard traces to its exact source commit. Falls back to
semver-only when the env var is absent (local dev). Also fixes the profile
page repo link back to asepharyana/9router (MIBP merge target), replacing
the mhiqrambg fork label left over from the merge.
This commit is contained in:
asepharyana
2026-09-23 14:45:08 +07:00
parent 3f0d904d1d
commit e0eef05b6b
4 changed files with 11 additions and 4 deletions
+4
View File
@@ -5,6 +5,10 @@ export const APP_CONFIG = {
name: "9Router Proxy",
description: "AI Infrastructure Management",
version: pkg.version,
// Build identity = git short SHA, injected at build time by the Nix flake
// (NEXT_PUBLIC_GIT_SHA). Falls back to "dirty"/undefined in dev where the
// env var is absent, so the dashboard shows just the semver.
gitSha: process.env.NEXT_PUBLIC_GIT_SHA || null,
};
// GitHub configuration