diff --git a/pages/index.tsx b/pages/index.tsx index 30bef70..ae89850 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -46,7 +46,7 @@ function HomePage(props: { postsMeta: PostMeta[] }) { ) } -export async function getServerSideProps() { +export async function getStaticProps() { return { props: { postsMeta: getPostsMeta() } }; diff --git a/pages/posts/index.tsx b/pages/posts/index.tsx index 88c680e..0bc4d34 100644 --- a/pages/posts/index.tsx +++ b/pages/posts/index.tsx @@ -27,7 +27,7 @@ function HomePage(props: {postsMeta: PostMeta[]}) { ) } -export async function getServerSideProps() { +export async function getStaticProps() { return { props: { postsMeta: getPostsMeta() } };