diff --git a/pages/[...path].tsx b/pages/[...path].tsx index 4eb6771..f79b095 100644 --- a/pages/[...path].tsx +++ b/pages/[...path].tsx @@ -34,7 +34,7 @@ export default function Folders() { ) } -export async function getStaticProps({ locale }) { +export async function getServerSideProps({ locale }) { return { props: { ...(await serverSideTranslations(locale, ['common'])) diff --git a/pages/index.tsx b/pages/index.tsx index 7d6f35f..b506ccc 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -31,7 +31,7 @@ export default function Home() { ) } -export async function getStaticProps({ locale }) { +export async function getServerSideProps({ locale }) { return { props: { ...(await serverSideTranslations(locale, ['common']))