fix : build issue
CI / Verify (push) Successful in 1m12s
CI / Build immutable images and deploy (push) Successful in 1m46s

This commit is contained in:
2026-09-08 18:16:32 +07:00 Unverified
parent 9a3672dab3
commit 5e4d07f59f
2 changed files with 15 additions and 3 deletions
+12 -2
View File
@@ -1,11 +1,19 @@
import { connection } from "next/server";
import { Suspense } from "react";
import { LiveRefresh } from "@/components/live-refresh"; import { LiveRefresh } from "@/components/live-refresh";
import { SiteFooter } from "@/components/public/site-footer"; import { SiteFooter } from "@/components/public/site-footer";
import { StructuredDirectory } from "@/components/public/structured-directory"; import { StructuredDirectory } from "@/components/public/structured-directory";
import { SiteHeader } from "@/components/public/site-header"; import { SiteHeader } from "@/components/public/site-header";
import { getCachedPublicGuideCards } from "@/lib/cache/public"; import { getCachedPublicGuideCards } from "@/lib/cache/public";
export default async function HomePage() { async function DirectoryContent() {
await connection();
const guides = await getCachedPublicGuideCards(); const guides = await getCachedPublicGuideCards();
return <StructuredDirectory guides={guides} />;
}
export default function HomePage() {
return ( return (
<div className="flex min-h-svh flex-col bg-background"> <div className="flex min-h-svh flex-col bg-background">
<LiveRefresh endpoint="/api/events/directory" /> <LiveRefresh endpoint="/api/events/directory" />
@@ -19,7 +27,9 @@ export default async function HomePage() {
ไกด์ตัวละคร อาวุธ อาร์ติแฟกต์ กลุ่มดาว และคำนวณทีม ไกด์ตัวละคร อาวุธ อาร์ติแฟกต์ กลุ่มดาว และคำนวณทีม
</p> </p>
</header> </header>
<StructuredDirectory guides={guides} /> <Suspense fallback={<div className="min-h-svh" aria-hidden="true" />}>
<DirectoryContent />
</Suspense>
</main> </main>
<SiteFooter /> <SiteFooter />
</div> </div>
+3 -1
View File
@@ -14,8 +14,10 @@ describe("public rendering performance", () => {
]); ]);
expect(layout).not.toContain("export const instant = false"); expect(layout).not.toContain("export const instant = false");
expect(page).not.toContain("connection()");
expect(page).not.toContain("export const instant = false"); expect(page).not.toContain("export const instant = false");
expect(page).toContain("async function DirectoryContent()");
expect(page).toContain("await connection()");
expect(page).toContain('fallback={<div className="min-h-svh"');
}); });
it("isolates request-time header authentication", async () => { it("isolates request-time header authentication", async () => {