Update git.ts
This commit is contained in:
@@ -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',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user