Skip to content

Commit bd12678

Browse files
committed
refactor: rename to __GIT_COMMIT
1 parent 0bcef53 commit bd12678

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default defineConfig({
3535
visualizer(),
3636
],
3737
define: {
38-
_GIT_COMMIT: JSON.stringify(execSync("git rev-parse HEAD").toString().trim()),
38+
__GIT_COMMIT: JSON.stringify(execSync("git rev-parse HEAD").toString().trim()),
3939
},
4040
},
4141
});

src/components/Footer.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import VercelBanner from "./VercelBanner.astro";
44
55
declare global {
66
// See `astro.config.mjs` for definition.
7-
const _GIT_COMMIT: string;
7+
const __GIT_COMMIT: string;
88
}
99
10-
const gitCommit = _GIT_COMMIT;
10+
const gitCommit = __GIT_COMMIT;
1111
const gitCommitShort = gitCommit.slice(0, 7);
1212
const githubCommitUrl = `https://github.com/jsdocs-io/web/commit/${gitCommit}`;
1313
---

0 commit comments

Comments
 (0)