Docs: React on Netlify | Netlify Docs
Specifically:
Which links to:
Also, point 2 from this: [Support Guide] I’ve deployed my site but I still see "Page not found”
herambedra:
Current setup
netlify.toml:
[build]
command = "npm run build"
publish = "dist"
[[redirects]]
from = "/api/*"
to = "https://api.example.com/:splat"
status = 200
force = true
I also tried adding this:
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
but I’m not sure if I placed it correctly, because the deploy still seems to behave the same way.
If you had placed that rule in the same file, it should have worked. However since you’ve not shared your site’s details, it’s not possible for us to check that bit.