Make prop requests to static

This commit is contained in:
Paul W. 2022-04-27 06:39:10 -04:00
parent 6c999dbabf
commit 2d4a2809b4
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ function HomePage(props: { postsMeta: PostMeta[] }) {
) )
} }
export async function getServerSideProps() { export async function getStaticProps() {
return { return {
props: { postsMeta: getPostsMeta() } props: { postsMeta: getPostsMeta() }
}; };

View File

@ -27,7 +27,7 @@ function HomePage(props: {postsMeta: PostMeta[]}) {
) )
} }
export async function getServerSideProps() { export async function getStaticProps() {
return { return {
props: { postsMeta: getPostsMeta() } props: { postsMeta: getPostsMeta() }
}; };