fireactjs / saas

A fully functional React web application for SaaS projects. It's built with React, Firebase and Stripe.
476 stars 177 forks source link

404 not found when refreshing page #31

Closed DmitryUlyanov closed 2 years ago

DmitryUlyanov commented 2 years ago

Hi, thanks for a great repo!

I managed to deploy it to firebase hosting following your documentation. However, there is an issue in the deployed website, which does not reproduce locally or at your demo page.

So https://demo.fireact.dev/ get's redirected to https://demo.fireact.dev/signin?re=/ and if you then press F5, the page will reload well to the same as before reloading.

If I do npm run start locally and do the same on localhost -- also works without problems.

Once I do firebase deploy and try it on the hosted website -- F5 turns into 404. You can try it here: [deleted link] . Can you please help fixing this?

DmitryUlyanov commented 2 years ago

This helped https://stackoverflow.com/questions/70087805/firebase-deploy-routes-not-working-as-they-did-with-npm-run-react