Make git commit hash in footer clickable
All checks were successful
CI / test (push) Successful in 10m36s
CI / test (pull_request) Successful in 11m8s

- Added link to actual commit on git.deco.sh
- Commit hash now opens in new tab with proper attributes
- Maintains 'development' text when no commit hash available

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Derek Slenk 2025-07-17 10:32:36 -04:00
parent f6ddce9290
commit 84a4f7e9df

View file

@ -30,7 +30,18 @@ export function Footer() {
</p> </p>
<p className="mt-2">&copy; {new Date().getFullYear()} Cheating Chelsea Exposed. All Rights Reserved.</p> <p className="mt-2">&copy; {new Date().getFullYear()} Cheating Chelsea Exposed. All Rights Reserved.</p>
<p className="mt-1 text-xs text-muted-foreground/50"> <p className="mt-1 text-xs text-muted-foreground/50">
Build: {process.env.NEXT_PUBLIC_GIT_COMMIT || 'development'} Build: {process.env.NEXT_PUBLIC_GIT_COMMIT ? (
<a
href={`https://git.deco.sh/signal-works/cheatingchelsea/commit/${process.env.NEXT_PUBLIC_GIT_COMMIT}`}
className="hover:underline"
target="_blank"
rel="noopener noreferrer"
>
{process.env.NEXT_PUBLIC_GIT_COMMIT}
</a>
) : (
'development'
)}
</p> </p>
</div> </div>
</footer> </footer>