mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 01:35:39 -04:00
Add version and commit info footer to settings page
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user