How to Make an API call from server side in Next.js using
getServerSideProps
In this tutorial, you’ll see how you can make an API call from server side using getServerSideProps
. Using getServerSideProps
you can make an API call in the Next.js page during server side rendering.