DEV Community

Discussion on: Authenticating things with cookies on Next.js

larsejaas profile image
Lars Ejaas

Just wow! Thanks for this article! Learned a lot!
I really have struggled to figure out how to keep the static page generation and combining it with user authentification in Next.js...

jfranciscosousa profile image
Francisco Sousa Author

As long as you don't add a custom getInitialProps on _app.tsx all pages that can be static will remain static!