diff options
| author | hazel <hazel@hazelthats.me> | 2026-03-06 16:38:48 +0100 |
|---|---|---|
| committer | hazel <hazel@hazelthats.me> | 2026-03-06 16:38:48 +0100 |
| commit | 0ec0cc82ca10b08aad1de3acd7ce53414413caa2 (patch) | |
| tree | 1e7c82e8616b18d0397b2256ef593d7bd36c0249 /_data/buildInfo.js | |
| parent | b531d870111587340cc892ea4f1fc4e9c8fa8624 (diff) | |
| download | lpdu-site-0ec0cc82ca10b08aad1de3acd7ce53414413caa2.tar.gz lpdu-site-0ec0cc82ca10b08aad1de3acd7ce53414413caa2.tar.bz2 lpdu-site-0ec0cc82ca10b08aad1de3acd7ce53414413caa2.zip | |
website outline, deployment code
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, + }; +}; |
