Master getServerSideProps to render Next.js pages on the server per request. Access cookies, headers, and dynamic database queries.