From 5bd04045b1cb92411554093b455c56b76003b84d Mon Sep 17 00:00:00 2001 From: myl7 Date: Sun, 6 Feb 2022 06:54:52 +0800 Subject: [PATCH] fix pages get props --- pages/[...path].tsx | 2 +- pages/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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']))