import Section from "@/components/landing/section"; import Hero from "@/components/landing/hero"; import Features from "@/components/features"; import Link from "next/link"; async function getGitHubStars() { try { const response = await fetch( "https://api.github.com/repos/better-auth/better-auth", { next: { revalidate: 60, }, }, ); if (!response?.ok) { return null; } const json = await response.json(); const stars = parseInt(json.stargazers_count).toLocaleString(); return stars; } catch { return null; } } export default async function HomePage() { const stars = await getGitHubStars(); return (
Introducing{" "} Better Auth Infrastructure | Join the waitlist →

); }