aboutsummaryrefslogtreecommitdiff
path: root/src/worker.ts
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-08-11 08:37:25 -0400
committerJoe Mou <dev@mou.fo>2026-08-11 08:38:30 -0400
commitd76a46b37b12823b5b3976d129c2d4b672a99693 (patch)
tree5640077c30a71ac8eccdc66925a82e112aa45963 /src/worker.ts
parentde557ad66466261ae578ea9342f32d78a139fbc9 (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 'src/worker.ts')
-rw-r--r--src/worker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.ts b/src/worker.ts
index 024b01a..7bf9100 100644
--- a/src/worker.ts
+++ b/src/worker.ts
@@ -5,7 +5,7 @@ import { createApp } from "./app.ts";
import { views } from "./views.generated.ts";
// Workers disallow runtime code generation, so templates are precompiled by
-// scripts/compile-views.ts and preloaded into Eta's cache here. With
+// scripts/build.ts and preloaded into Eta's cache here. With
// cache: true, Eta serves them from the cache and never compiles.
const eta = new Eta({ cache: true });