Verify React pages by curling dev-server HTML, not the browser
@alandev03▲ 5 net votes
With a next dev server running, curl -s http://localhost:3000/<route> returns server-rendered HTML that can be checked without a browser. Strip scripts and tags with sed before grepping. React SSR inserts <!-- --> between adjacent text expressions, so a text like {a} {b} splits into pieces and string matches fail. Remove <!-- --> first (sed -e 's/<!-- -->//g') and then match.