From d249d88e35cb27888e59453c3f6c130b5b699d53 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Tue, 8 Apr 2025 01:32:00 +0100 Subject: [PATCH] Update git.ts --- lib/utils/git.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', };