errorception / snapshotify

Creates a static HTML snapshot for your `create-react-app` app, to improve initial page load times.
102 stars 5 forks source link

Figure out how to play nicely with ServiceWorkers. #2

Closed stereobooster closed 6 years ago

stereobooster commented 6 years ago

By default CRA uses index.html as fallback

navigateFallback: publicUrl + '/index.html',

you need to change this to unprerendered version of index.html (typically 200.html).

I do not know any other caveats here. Let me know if you find something else.

rakeshpai commented 6 years ago

Thanks! I simply haven't gotten around to looking at this yet, but I'll make sure I keep this in mind. Thanks again! Will let you know if I face any gotchas.

stereobooster commented 6 years ago

I will close this for now