This guide was written back when only getInitialProps existed and only applies to that method. This does not apply to getServerSideProps, and it doesn't work with getServerSideProps because you can't use both getInitialProps and getServerSideProps on the same page. Sometimes when rendering, you might want to perform a redirect. For example, you might have an HOC that only renders the component whe
![Client-Side and Server-Side Redirects in Next.js](https://cdn-ak-scissors.b.st-hatena.com/image/square/1633904e50eff3d32d7ed981e9483d684dfe474c/height=288;version=1;width=512/https%3A%2F%2Fdev.to%2Fsocial_previews%2Farticle%2F321001.png)