I deployed my React app but cannot directly type any react-router url paths (like (^◡^✿) hello!) or else I get the 404 page not found error screen.
-
I already created a
_redirects
file containing/* /index.html 200
that lives inside my public directory -
I already created a
netlify.toml
with a special command that I thought could fix this_redirects
issue:
[build]
command = "npm run build && cp _redirects dist/_redirects"
publish = "dist"
[[redirects]]
from = "https://christinetrac.dev"
to = "https://www.christinetrac.dev"
None of these things worked, and I still get an error page. Any idea how I can fix this?
This is my deploy log: Netlify App