I'm trying to solve a problem when refreshing the page and I get a 404. I've been trying to fix it for several days

@vasawat77 This is an easy one.

Your app appears to be an SPA (Single Page Application), so the other “pages” don’t actually exist.

See the note here in the warning box that says Avoid 404s for SPAs:

You need to add the rewrite as demonstrated here:

It ensures requests for routes that don’t exist are served your applications main index.html file

If it’s unclear, here’s a more detailed explanation I gave previously:

1 Like