Make prop requests to static
This commit is contained in:
parent
6c999dbabf
commit
2d4a2809b4
@ -46,7 +46,7 @@ function HomePage(props: { postsMeta: PostMeta[] }) {
|
||||
)
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
export async function getStaticProps() {
|
||||
return {
|
||||
props: { postsMeta: getPostsMeta() }
|
||||
};
|
||||
|
@ -27,7 +27,7 @@ function HomePage(props: {postsMeta: PostMeta[]}) {
|
||||
)
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
export async function getStaticProps() {
|
||||
return {
|
||||
props: { postsMeta: getPostsMeta() }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user