getStaticProps
(Static Site Generation) from a page
, Next.js
will pre-render
this page at build time using the props returned by getStaticProps
.export async function getStaticProps(context) {
return {
props: {}, // will be passed to the page component as props
}
}