Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get server side props

export async function getStaticProps(context) {
  return {
    props: {}, // will be passed to the page component as props
  }
}
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #server #side #props
ADD COMMENT
Topic
Name
2+8 =