From 2d4a2809b4e09f36a02b9fb6baa6602581020274 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 27 Apr 2022 06:39:10 -0400 Subject: [PATCH] Make prop requests to static --- pages/index.tsx | 2 +- pages/posts/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() } };