This commit is contained in:
eric
2026-03-16 20:08:21 -05:00
parent e30d4ad950
commit c93eb7b2ee
11 changed files with 314 additions and 211 deletions

View File

@@ -1,10 +1,6 @@
import { getVolunteer } from "@/app/lib/volunteers";
import HomeContent from "./components/HomeContent";
export const dynamic = "force-dynamic";
/** 首页:服务端先查询第一个志愿者,替换发起人志愿者卡片 */
export default async function Home() {
const volunteer = await getVolunteer();
return <HomeContent initialVolunteer={volunteer} />;
/** 首页:志愿者由客户端加载,避免 SSR 阻塞首屏 */
export default function Home() {
return <HomeContent initialVolunteer={null} />;
}