Skip to content

Show the commit in the footer after a manual deploy too - #6

Merged
fdb merged 1 commit into
mainfrom
claude/project-thread-v9st2d
Oct 16, 2026
Merged

fdb merged 1 commit into
mainfrom
claude/project-thread-v9st2d

Conversation

@fdb

@fdb fdb commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Requested by Frederik · project thread

Before: after npm run deploy the footer showed no version, because only the Workers Builds deploy passed the commit.

After: npm run deploy passes git rev-parse HEAD as GIT_COMMIT too, so the footer links the deployed commit either way.

How: the script only passes the hash when git diff --quiet HEAD says the tree is clean, otherwise none, so the footer never links a commit that differs from what runs. A bare npx wrangler deploy still shows no version; DEPLOY.md says so.

@fdb fdb changed the title Pass git commit hash to deployed footer via environment variable Show the commit in the footer after a manual deploy too Oct 16, 2026
@fdb
fdb merged commit 8869c03 into main Oct 16, 2026
1 check passed
@fdb
fdb deleted the claude/project-thread-v9st2d branch October 16, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants