Cookies Method
The Cookies method determines User Context and loads page props based on browser cookies.
Requirements
This method works only on routes that use
getServerSideProps
Routes that use
getStaticProps
will need to be converted to usegetServerSideProps
Considerations
Pros
Next.js will pre-render each page on each request.
Each page response returns a private local cache to reduce load.
Cons
Server load may increase if routes are transferred from
getStaticProps
togetServerSideProps