Replies: 1 comment
-
For Netlify, you need to add a _redirect file to the public directory of your react-app. (No file extension needed!) In that file you need to enter the following paths to allow every redirect. It basically tells the Netlify host to send the HTTP-code 200 (OK) to the client on every redirect. I hope this helps. Please let me know if it doesn't! 😃 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Config:
react-router-dom v6.0.2,
react v17.0.0,
firebase v9.5.0
Hello,
My app is hosted by netlify, all public routes are ok and I've set up my environment variables on netlify. I even set a _redirects file .But when I try to go on signup/login page I get a 404:
Those pages are related to a private route leading to a dasboard.
I really don't know where it's coming from, if it's react-router-dom, Firebase or netlify. If you got any clue, I will appreciate =). I let you below the files.
PrivateRoute.jsx
Login.jsx similar to SignUp
AuthContext.jsx
App.jsx
Beta Was this translation helpful? Give feedback.
All reactions