From 291da9577580e4557edeffe5db06f751d263a39c Mon Sep 17 00:00:00 2001 From: parkyejin Date: Tue, 20 Aug 2024 15:08:30 +0900 Subject: [PATCH] fix: vercel deploy error --- src/app/board/[id]/update/page.tsx | 9 ++++++++- src/app/board/create/page.tsx | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/app/board/[id]/update/page.tsx b/src/app/board/[id]/update/page.tsx index f8beeb9..7d4f826 100644 --- a/src/app/board/[id]/update/page.tsx +++ b/src/app/board/[id]/update/page.tsx @@ -1,9 +1,16 @@ 'use client' -import BoardUpdatePage from '@/components/board/BoardUpdatePage' +import dynamic from 'next/dynamic' import { Suspense } from 'react' const Page = () => { + const BoardUpdatePage = dynamic( + () => import('@/components/board/BoardUpdatePage'), + { + ssr: false, + }, + ) + return ( Loading...}> diff --git a/src/app/board/create/page.tsx b/src/app/board/create/page.tsx index cefd88b..5dd18ba 100644 --- a/src/app/board/create/page.tsx +++ b/src/app/board/create/page.tsx @@ -1,9 +1,16 @@ 'use client' -import BoardCreatePage from '@/components/board/BoardCreatePage' +import dynamic from 'next/dynamic' import { Suspense } from 'react' const Page = () => { + const BoardCreatePage = dynamic( + () => import('@/components/board/BoardCreatePage'), + { + ssr: false, + }, + ) + return ( Loading...}>