Skip to content

Implement Prerender #1

@rainesinternationaldev

Description

@rainesinternationaldev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions