Great article and thanks a lot. I've been running into some issues with the protected server side rendered page.
When trying to access the page the whole app crashes with the following in the console:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
I tested from many angles, and even when cloning your source code I ran into the issue.
There are some discussions on the Next.js GitHub (github.com/vercel/next.js/discussi...) on the same topic. Not sure if it's a Next.js version thing
For now, I'll continue to dig for a better understanding of what's going on.
same. any luck with this bug?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article and thanks a lot. I've been running into some issues with the protected server side rendered page.
When trying to access the page the whole app crashes with the following in the console:
I tested from many angles, and even when cloning your source code I ran into the issue.
There are some discussions on the Next.js GitHub (github.com/vercel/next.js/discussi...) on the same topic. Not sure if it's a Next.js version thing
For now, I'll continue to dig for a better understanding of what's going on.
same. any luck with this bug?