From 2ced0f0dcd1a2a06c9f8929b6e57b786fb63fde6 Mon Sep 17 00:00:00 2001 From: TAEINJEONG Date: Wed, 20 Aug 2025 16:51:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20nextI18NextConfig=20=EB=B6=99=EC=97=AC?= =?UTF-8?q?=EC=A3=BC=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/main.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/main.tsx b/src/pages/main.tsx index 0b59e09..9b764b3 100644 --- a/src/pages/main.tsx +++ b/src/pages/main.tsx @@ -9,6 +9,7 @@ import topArrow from '@/assets/icon/top-arrow-icon.svg'; import { GetStaticProps } from 'next'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; +import nextI18NextConfig from '../../next-i18next.config.js'; import { useTranslation } from 'next-i18next'; import { useTodayEpigram } from '@/hooks/useTodayEpigram'; import { useInfiniteEpigrams } from '@/hooks/useEpigrams'; @@ -41,7 +42,11 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => { return { props: { - ...(await serverSideTranslations(locale ?? 'ko', ['emotion', 'main', 'comment'])), + ...(await serverSideTranslations( + locale ?? 'ko', + ['emotion', 'main', 'comment'], + nextI18NextConfig, + )), dehydratedState: dehydrate(qc), }, revalidate: 60,