We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bcef53 commit bd12678Copy full SHA for bd12678
2 files changed
astro.config.mjs
@@ -35,7 +35,7 @@ export default defineConfig({
35
visualizer(),
36
],
37
define: {
38
- _GIT_COMMIT: JSON.stringify(execSync("git rev-parse HEAD").toString().trim()),
+ __GIT_COMMIT: JSON.stringify(execSync("git rev-parse HEAD").toString().trim()),
39
},
40
41
});
src/components/Footer.astro
@@ -4,10 +4,10 @@ import VercelBanner from "./VercelBanner.astro";
4
5
declare global {
6
// See `astro.config.mjs` for definition.
7
- const _GIT_COMMIT: string;
+ const __GIT_COMMIT: string;
8
}
9
10
-const gitCommit = _GIT_COMMIT;
+const gitCommit = __GIT_COMMIT;
11
const gitCommitShort = gitCommit.slice(0, 7);
12
const githubCommitUrl = `https://github.com/jsdocs-io/web/commit/${gitCommit}`;
13
---
0 commit comments