diff --git a/next-i18next.config.js b/next-i18next.config.js index b9045f7..74dc519 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -3,6 +3,12 @@ module.exports = { locales: ['ko', 'en'], defaultLocale: 'ko', }, - reloadOnPrerender: process.env.NODE_ENV === 'development', + reloadOnPrerender: true, localePath: './public/locales', + fallbackLng: { + default: ['ko'], + }, + interpolation: { + escapeValue: false, + }, }; diff --git a/src/pages/main.tsx b/src/pages/main.tsx index 9b764b3..c771243 100644 --- a/src/pages/main.tsx +++ b/src/pages/main.tsx @@ -42,11 +42,10 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => { return { props: { - ...(await serverSideTranslations( - locale ?? 'ko', - ['emotion', 'main', 'comment'], - nextI18NextConfig, - )), + ...(await serverSideTranslations(locale ?? 'ko', ['emotion', 'main', 'comment'], { + ...nextI18NextConfig, + reloadOnPrerender: true, + })), dehydratedState: dehydrate(qc), }, revalidate: 60,