DEV Community

Discussion on: Introduction to NextJS

Collapse
 
dskaiser82 profile image
Daniel Kaiser • Edited

Wanted to challenge one part of this :" CSR is that it's not actually SEO friendly, because search engines will not see the actual content of the page. "

I built a SPA (CSR) app at my last job from scratch using Vue + Vue Router + Apache back-end (not my choice). At first Apache complained about the routes saying they didn't exist. And Google's page rankings didn't like this.

The solve:

  • Use Google Search Console search.google.com/
  • Keep the site map updated and upload it to Search Console
  • Once we fixed the apache 404 errors, update Search Console with all the routes

One google knew the SPA routes existed, the idea that Google's spiders can't read the pages because they are JS and virtual DOM is completely false. The Spiders did read the Vue/Vue Router pages, and our SEO rankings was in the 85-90 area