import { cookies } from "next/headers"; import { authCookieHeader } from "@/lib/cookies"; import { fetchStatsOverview, type VisitOverview } from "@/lib/api"; import OverviewClient from "./OverviewClient"; export const dynamic = "force-dynamic"; export default async function AnalyticsOverviewPage() { const cookie = authCookieHeader(await cookies()); let initial: VisitOverview | null = null; try { initial = await fetchStatsOverview(cookie || undefined, "7d"); } catch { initial = null; } return ; }