From c38462e73a855dedf13f1295c6a2967e5a98e4ea Mon Sep 17 00:00:00 2001
From: Jiyoung Jung <72294509+Jungjjeong@users.noreply.github.com>
Date: Tue, 26 Nov 2024 00:21:18 +0900
Subject: [PATCH] fix: hydration error
---
src/features/Main/sections/index.ts | 1 +
src/pages/index.tsx | 14 +++++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
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() {
-
+