getserversideprops example
Example: next js getserversideprops
export async function getServerSideProps(context) {
return {
props: {}, // will be passed to the page component as props
}
}
export async function getServerSideProps(context) {
return {
props: {}, // will be passed to the page component as props
}
}