Update git.ts

This commit is contained in:
NotII
2025-04-08 01:32:00 +01:00
parent 0c1d1cf8ed
commit d249d88e35

View File

@@ -1,4 +1,4 @@
// Git utility functions import gInfo from "../../public/git-info.json"
interface GitInfo { interface GitInfo {
hash: string; hash: string;
@@ -21,7 +21,7 @@ export function getGitInfo(): GitInfo {
// In production builds, the git info should be available // In production builds, the git info should be available
// In development, we'll use default values // In development, we'll use default values
const gitInfo = { const gitInfo = {
hash: process.env.NEXT_PUBLIC_GIT_HASH || 'dev', hash: gInfo.commitHash,
date: process.env.NEXT_PUBLIC_GIT_DATE || new Date().toISOString(), date: process.env.NEXT_PUBLIC_GIT_DATE || new Date().toISOString(),
message: process.env.NEXT_PUBLIC_GIT_MESSAGE || 'Development build', message: process.env.NEXT_PUBLIC_GIT_MESSAGE || 'Development build',
}; };