Files
ember-market-frontend/lib/git-utils.ts
2025-04-06 16:41:08 +01:00

16 lines
334 B
TypeScript

import gitInfo from "../public/git-info.json";
/**
* Git utility to load commit hash in both development and production environments
*/
interface GitInfo {
commitHash: string;
buildTime: string;
}
let cachedGitInfo: GitInfo | null = null;
export async function getGitCommitInfo(): Promise<GitInfo> {
return gitInfo;
}