Make prop requests to static

This commit is contained in:
paul committed 2022-04-27 06:39:10 -04:00
1 parent a4a91cb881
commit 3d4b1b4f54
2 files changed
+2 -2

No files matched your search

+1 -1
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() }
}; };
+1 -1
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() }
}; };