Add version and commit info footer to settings page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 12:17:36 -05:00
co-authored by Claude Opus 4.6
parent 472e5609e3
commit 03917e0a1d
4 changed files with 59 additions and 2 deletions
+11
View File
@@ -1,5 +1,16 @@
import { execSync } from "node:child_process";
import type { NextConfig } from "next";
process.env.GIT_COMMIT_SHA = (() => {
try {
return execSync("git rev-parse --short HEAD", {
encoding: "utf-8",
}).trim();
} catch {
return "unknown";
}
})();
const imageBaseUrl = process.env.TMDB_IMAGE_BASE_URL || "";
const imageHost = imageBaseUrl
? new URL(imageBaseUrl).hostname