diff --git a/src/app/gacha-board/create/page.tsx b/src/app/gacha-board/create/page.tsx index 688df33..ff81374 100644 --- a/src/app/gacha-board/create/page.tsx +++ b/src/app/gacha-board/create/page.tsx @@ -1,8 +1,16 @@ -import GachaPostEditor from '@/components/GachaPostEditor'; +'use client'; -export const metadata = { - title: '게시글 작성 | 전국 가챠 지도', -}; +import dynamic from 'next/dynamic'; + +// 관리자 전용 무거운 컴포넌트 — 초기 번들에서 분리 +const GachaPostEditor = dynamic(() => import('@/components/GachaPostEditor'), { + ssr: false, + loading: () => ( +
+
+
+ ), +}); export default function Page() { return ; diff --git a/src/app/gacha-board/edit/[id]/page.tsx b/src/app/gacha-board/edit/[id]/page.tsx index f21d1e6..83f06d8 100644 --- a/src/app/gacha-board/edit/[id]/page.tsx +++ b/src/app/gacha-board/edit/[id]/page.tsx @@ -1,4 +1,15 @@ -import GachaPostEditor from '@/components/GachaPostEditor'; +'use client'; + +import dynamic from 'next/dynamic'; + +const GachaPostEditor = dynamic(() => import('@/components/GachaPostEditor'), { + ssr: false, + loading: () => ( +
+
+
+ ), +}); export default function Page({ params }: { params: { id: string } }) { return ; diff --git a/src/app/gacha-board/page.tsx b/src/app/gacha-board/page.tsx index 9c3729c..2729106 100644 --- a/src/app/gacha-board/page.tsx +++ b/src/app/gacha-board/page.tsx @@ -1,5 +1,8 @@ import GachaBoardPage from '@/components/GachaBoardPage'; +// 1분마다 재검증 +export const revalidate = 60; + export const metadata = { title: '신규 가챠·신규 쿠지 정보 게시판', description: '신규 가챠, 신규 쿠지(이치방쿠지), 신규 가차 출시 정보를 가장 빠르게 확인하세요. 전국 가챠 지도에서 최신 캡슐토이·제일복권 소식을 제공합니다.', diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a89f7c7..8dfb111 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -112,8 +112,8 @@ export default function RootLayout({ return ( - {/* 카카오맵 스크립트를 head에 배치 */} -