Netlify site name: https://stayfit-calorie-app.netlify.app
I have a _redirects.txt file in my frontend/public folder which looks like this -
/api/* https://stayfit-backend-xv9v.onrender.com/api/:splat 200
/* /index.html 200
However, when i try to sign in, the frontend sends a post request to ‘https://stayfit-calorie-app.netlify.app/api/help/login’. How do I solve this?
Keep in mind, I’ve been trying to implement this as a solution to this problem I’m facing -
Hi @minhaj275, thanks for the post and welcome.
Kindly change the file from
_redirects to see if helps resolve your problem.
The file does not need to have a file extension.
You can learn more at Redirects and rewrites | Netlify Docs
The file is already named ‘_redirects’. I just mentioned the file extension ‘.txt’. Apologies for the confusion.
It shouldn’t have a file extension @minhaj275 as @clarnx mentioned and as is outlined in the linked documentation.
Hey @minhaj275, sorry but your link isn’t working. We’re not able to check your website.