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