diff options
| author | hazel <hazel@hazelthats.me> | 2026-03-06 17:56:45 +0100 |
|---|---|---|
| committer | hazel <hazel@hazelthats.me> | 2026-03-06 17:56:45 +0100 |
| commit | fcbb4790e92302696175cfa89608cbb985383d15 (patch) | |
| tree | 7c96ec251573de0a5b7cfc129d98559911d04caf /_data/buildInfo.js | |
| download | hazelthats.me-fcbb4790e92302696175cfa89608cbb985383d15.tar.gz hazelthats.me-fcbb4790e92302696175cfa89608cbb985383d15.tar.bz2 hazelthats.me-fcbb4790e92302696175cfa89608cbb985383d15.zip | |
history reset for anonymity
Signed-off-by: hazel <hazel@hazelthats.me>
Diffstat (limited to '_data/buildInfo.js')
| -rw-r--r-- | _data/buildInfo.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/_data/buildInfo.js b/_data/buildInfo.js new file mode 100644 index 0000000..3fb3c37 --- /dev/null +++ b/_data/buildInfo.js @@ -0,0 +1,11 @@ +import { execSync } from "child_process"; + +export default () => { + const latestGitCommitHash = execSync("git rev-parse --short=10 HEAD") + .toString() + .trim(); + + return { + hash: latestGitCommitHash, + }; +}; |
