Hi im having a problem deploying this project https://rccf3.onrender.com/
The logs say it deployed successfully, but for some inexplicable reason all I get is a blank page that says “not found.”
I looked at the post about redirects and can’t find where rules are in the dashboard
Keith
April 3, 2024, 5:16am
2
Hi there,
Your code is sending a 404 response for the /
route. Are your other routes working? It could be that the /*
route is causing your service to respond with a 404 for all routes.
Regards,
Keith
Render Support, UTC+10
Hi Keith,
Here are all my routes.Yes everything works on local machine
Update: I’ve removed the extra “/*” route and the problem persists
Keith
April 3, 2024, 8:46pm
5
Hi there,
The /*
The route handler is in your server code, not in your react frontend. Try removing these lines:
app.use("*", (req, res) => { res.status(404).send("Not Found");});app.use("/*", (req, res) => { res.status(404).send("Not Found");});
Regards,
Keith
Render Support, UTC+10
Thanks Keith! That fixed it
system
Closed
May 7, 2024, 6:29pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.