diff --git a/src/features/Main/sections/index.ts b/src/features/Main/sections/index.ts index 4ce64617..2c333f3a 100644 --- a/src/features/Main/sections/index.ts +++ b/src/features/Main/sections/index.ts @@ -5,4 +5,5 @@ export * from './MainReasonSection'; export * from './MainRecruitSection'; export * from './MainResultSection'; export * from './MainScheduleSection'; +export * from './MainSubscribeSection'; export * from './MainSupportSection'; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 495b8195..64a22d3b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,15 +1,23 @@ +import dynamic from 'next/dynamic'; + import { SEO } from '~/components/SEO'; import { MainBlogSection, MainIntroSection, - MainProjectSection, MainReasonSection, MainRecruitSection, MainResultSection, MainScheduleSection, + MainSubscribeSection, MainSupportSection, } from '~/features/Main/sections'; -import { MainSubscribeSection } from '~/features/Main/sections/MainSubscribeSection'; + +const DynamicMainProjectSection = dynamic( + () => import('~/features/Main/sections').then(({ MainProjectSection }) => MainProjectSection), + { + ssr: false, + } +); export default function Root() { return ( @@ -20,7 +28,7 @@ export default function Root() { - +