DEV Community

Discussion on: Implement Protected Routes in NextJS

Collapse
surafelgetachew profile image
Surafel Getachew

This helped a lot and thank you, but there is an issue in the console it there is a warning saying react-dom.development.js?61bb:67 Warning: Expected server HTML to contain a matching

in .
Collapse
shubhamverma profile image
Shubham Verma Author

Hey, glad the article helped you.
At the time of writing it, I didn't face any such issue.

On searching, I stumbled upon this
github.com/vercel/next.js/discussi...

I am not sure which above methods you implemented but this might solve your issue

My solution might not be perfect but you could tweak around it from the above GitHub discussion