Deployment successful, but blank page with “not found”

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

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 :australia:

Hi Keith,

Here are all my routes.Yes everything works on local machine

Update: I’ve removed the extra “/*” route and the problem persists

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 :australia:

Thanks Keith! That fixed it