feat(web): show deployed commit SHA in landing footer#31
Merged
cooper (czxtm) merged 1 commit intomainfrom May 2, 2026
Merged
Conversation
Inject GITHUB_SHA (or local git rev-parse fallback) at build time via Vite's `define` and render it in the landing footer as a link to the GitHub commit. Lets you eyeball whether the production deploy is on the expected revision. https://claude.ai/code/session_01WGbZGB93xMgBpBmoUDk91w
Contributor
|
Preview deployed to |
PR SummaryLow Risk Overview Updates the landing footer to show the deployed SHA as a monospace link to the corresponding GitHub commit, and adds a Reviewed by Cursor Bugbot for commit 7dd303c. Configure here. |
cooper (czxtm)
added a commit
that referenced
this pull request
May 2, 2026
feat(web): show deployed commit SHA in landing footer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
defineblock. Readsprocess.env.GITHUB_SHAfirst (set automatically by GitHub Actions) and falls back togit rev-parse --short HEADfor local builds. If both fail, falls back to the literal string"unknown".github.com/darkmatter/stackpanel/commit/<sha>. Lets you eyeball whether prod is currently serving the revision you expect.apps/web/src/types/build-info.d.tsdeclaring the__COMMIT_SHA__global so TypeScript is happy.Scope is intentionally just the landing footer for now — studio has its own chrome and can be extended later if useful.
Test plan
bun run devfromapps/web, confirm the footer shows the local short SHA and clicking it opens the right GitHub commit URL.mainHEAD that triggered the deploy.https://claude.ai/code/session_01WGbZGB93xMgBpBmoUDk91w
Generated by Claude Code