Make git commit hash in footer clickable #6
1 changed files with 12 additions and 1 deletions
|
@ -30,7 +30,18 @@ export function Footer() {
|
|||
</p>
|
||||
<p className="mt-2">© {new Date().getFullYear()} Cheating Chelsea Exposed. All Rights Reserved.</p>
|
||||
<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>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue