SPA

SPA
01
May 2020
May 01, 2020

Setup prerender on webpack with prerender-spa-plugin, Part 2

Let say we have pages, which are not in the prerender routes list for some reason. For example, pages which are visible only for logged in users or ones that are not needed for crawlers, etc. For those pages, the server will return the prerender file for the home page, which is not good. We need to return the initial HTML file which is generated during the webpack build for such pages.

Setup prerender on webpack with prerender-spa-plugin, Part 2
30
Apr 2020
Apr 30, 2020

Setup prerender on webpack with prerender-spa-plugin, Part 1

During developing SPA (Single Page Application) we met with a common SPA problem: although google crawler uses the last Chromium version to run JS and indexing results as HTML pages (it’s not so easy to make it work and there is still the Fix Search-related JavaScript problems list), but for other search systems and sharing in social networks SPA doesn’t work. They will get the default index.html with the default title, description, etc for all pages.

Setup prerender on webpack with prerender-spa-plugin, Part 1