DEV Community

Discussion on: Authenticating things with cookies on Next.js

Collapse
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...

Collapse
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!