From ee48b991e1ceff2fec2ecffcc8586b93d5934873 Mon Sep 17 00:00:00 2001 From: HangerThem Date: Mon, 3 Aug 2026 18:10:01 +0200 Subject: [PATCH] Hopefully finally correct pass through for git info --- components/layout/Sidebar.tsx | 10 ++++----- next.config.ts | 2 +- utils/git.ts | 40 ++--------------------------------- 3 files changed, 8 insertions(+), 44 deletions(-) diff --git a/components/layout/Sidebar.tsx b/components/layout/Sidebar.tsx index f86f8a3..fa643e1 100644 --- a/components/layout/Sidebar.tsx +++ b/components/layout/Sidebar.tsx @@ -3,7 +3,7 @@ import { NotepadText } from 'lucide-react' import { NavLinks } from '@/components/layout/NavLinks' import { siBluesky, siGithub, siMatrix, siTelegram, type SimpleIcon } from 'simple-icons' import { ExternalLink } from '@/components/ui/ExternalLink' -import { getGitCommitHash, getGitOriginUrl } from '@/utils/git' +import { getGitCommitHash } from '@/utils/git' type SocialLink = { icon: SimpleIcon @@ -29,10 +29,10 @@ const socialLinks: SocialLink[] = [ }, ] -export async function Sidebar() { - const gitCommitHash = (await getGitCommitHash())?.substring(0, 7) - const gitOriginUrl = await getGitOriginUrl() +const gitCommitHash = await getGitCommitHash() +const gitOriginUrl = process.env.GIT_ORIGIN_URL +export async function Sidebar() { return (