's'
This commit is contained in:
10
app/page.tsx
10
app/page.tsx
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user