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 (