fix : build issue
This commit is contained in:
+12
-2
@@ -1,11 +1,19 @@
|
||||
import { connection } from "next/server";
|
||||
import { Suspense } from "react";
|
||||
|
||||
import { LiveRefresh } from "@/components/live-refresh";
|
||||
import { SiteFooter } from "@/components/public/site-footer";
|
||||
import { StructuredDirectory } from "@/components/public/structured-directory";
|
||||
import { SiteHeader } from "@/components/public/site-header";
|
||||
import { getCachedPublicGuideCards } from "@/lib/cache/public";
|
||||
|
||||
export default async function HomePage() {
|
||||
async function DirectoryContent() {
|
||||
await connection();
|
||||
const guides = await getCachedPublicGuideCards();
|
||||
return <StructuredDirectory guides={guides} />;
|
||||
}
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<div className="flex min-h-svh flex-col bg-background">
|
||||
<LiveRefresh endpoint="/api/events/directory" />
|
||||
@@ -19,7 +27,9 @@ export default async function HomePage() {
|
||||
ไกด์ตัวละคร อาวุธ อาร์ติแฟกต์ กลุ่มดาว และคำนวณทีม
|
||||
</p>
|
||||
</header>
|
||||
<StructuredDirectory guides={guides} />
|
||||
<Suspense fallback={<div className="min-h-svh" aria-hidden="true" />}>
|
||||
<DirectoryContent />
|
||||
</Suspense>
|
||||
</main>
|
||||
<SiteFooter />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user