Problem: React-based sites don't show up on search engines.
Solution: Prerender.
Steps:
- Place a script in every view component of the site that takes a "snapshot" once the page has been rendered. The trick is knowing precisely when the page has completed rendering, which can differ depending on what the page displays. We know that we're grabbing content from WordPress, but search engines don't. So crawlers likely take a premature screenshot prior to when all the data is fetched, which is why nothing shows up.
- Update koa-prerender middleware. If PR doesn't go through, create internal module and just use that.
- Update URL scheme to be
/article/:id-then-article-title as opposed to /article/:id
- Create list of every URL that exists for Raines (homepage, ideas & insights page, all articles, profiles, etc.)
- Register every URL that exists for Raines via prerender API
Problem: React-based sites don't show up on search engines.
Solution: Prerender.
Steps:
/article/:id-then-article-titleas opposed to/article/:id