From 90ddbbfd072caf2cd6a6555fb4641b0d29c699d5 Mon Sep 17 00:00:00 2001 From: TAEINJEONG Date: Wed, 20 Aug 2025 18:25:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20SSR=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/main.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/main.tsx b/src/pages/main.tsx index c771243..910a5c3 100644 --- a/src/pages/main.tsx +++ b/src/pages/main.tsx @@ -7,7 +7,7 @@ import more from '@/assets/icon/more-icon.svg'; import epigramMore from '@/assets/icon/epigram-more-icon.svg'; import topArrow from '@/assets/icon/top-arrow-icon.svg'; -import { GetStaticProps } from 'next'; +import { GetServerSideProps } from 'next'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; import nextI18NextConfig from '../../next-i18next.config.js'; import { useTranslation } from 'next-i18next'; @@ -23,7 +23,7 @@ import { dehydrate, QueryClient } from '@tanstack/react-query'; import { listEpigrams } from '@/services/epigrams'; import { listComments } from '@/services/comments'; -export const getStaticProps: GetStaticProps = async ({ locale }) => { +export const getServerSideProps: GetServerSideProps = async ({ locale }) => { const qc = new QueryClient(); await qc.prefetchInfiniteQuery({ @@ -48,7 +48,6 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => { })), dehydratedState: dehydrate(qc), }, - revalidate: 60, }; };