Skip to content

Commit 1538708

Browse files
committed
feat : 최근 포스트 리스트를 동적으로 불러오게 설정
1 parent 5727e81 commit 1538708

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/app/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { cookies } from "next/headers";
22
import type { Theme } from "type";
33
import { Wave } from "@/components/Header/Wave";
44
import { HeroImage } from "@/components/HeroImage";
5-
import NewestPost from "@/components/Main/NewestPost";
65
import { FeatherIcon } from "@/components/Main/NewestPost/FeatherIcon";
76
import { RootLayout } from "@/features/RootLayout";
87
import {
@@ -11,6 +10,12 @@ import {
1110
Title,
1211
TitleWrapper,
1312
} from "./page.style";
13+
import dynamic from "next/dynamic";
14+
import { FrontMatterLoading } from "@/components/Skeletons/ui/ContentLoading";
15+
16+
const NewestPost = dynamic(() => import("@/components/Main/NewestPost"), {
17+
loading: () => <FrontMatterLoading length={2} />,
18+
});
1419

1520
export default async function Page() {
1621
const savedTheme = (await cookies()).get("color-theme")?.value || "light";

0 commit comments

Comments
 (0)