diff options
| author | Joe Mou <dev@mou.fo> | 2026-08-11 08:37:25 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-08-11 08:38:30 -0400 |
| commit | ab52f48e50d0dd242ad5b0cfbee9c458946cd427 (patch) | |
| tree | beb9519f163cd1ee2b229c8811b4de636c76078b /cgithub/.gitignore | |
| parent | 2b4a69720b53480d82cf296ac5dbe4614d9470b9 (diff) | |
Show the build's commit in the page footer
Workers can't shell out at request time, so the commit has to be baked
in before wrangler bundles the sources. compile-views.ts grows a second
job and becomes scripts/build.ts: alongside the precompiled views it
writes src/commit.generated.ts with `git describe --tags --always
--dirty`, which yields a bare short hash until the repo is tagged and
marks builds made from an unclean working copy.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'cgithub/.gitignore')
| -rw-r--r-- | cgithub/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cgithub/.gitignore b/cgithub/.gitignore index 5a5e404..b8fc600 100644 --- a/cgithub/.gitignore +++ b/cgithub/.gitignore @@ -1,3 +1,4 @@ /node_modules/ /.wrangler/ +/src/commit.generated.ts /src/views.generated.ts |
