sPavl0v / react-spa-prenderer

MIT License
34 stars 17 forks source link

Route only available at `/[ROUTE].html` #12

Closed dominiczy closed 2 years ago

dominiczy commented 2 years ago

Nice library! However I have a small problem. When adding a route, for example /about, once deployed and loading /about it still loads the standard React SPA. Instead, the static page has become available at /about.html. How do I make it so that loading /about also loads /about.html?

dominiczy commented 2 years ago

I think one solution would be to have the option to generate the file in /about/index.html instead? That should work with my hosting provider (firebase)

dominiczy commented 2 years ago

Ok, figured it out, needed to add "cleanUrls": true to the firebase hosting options!