getServerSideProps()
↔ async fn to run on Backend to pre-render on each request, to fetch async external data
Source: nextjs.org/docs/basic
export async function getServerSideProps() {
const res = await fetch("_URL")
const data = await res.json()
return { props: {data}}
}
export default function Page({data}) {//...}