I have added the _redirects file in the public directory and I think the redirect is working as I'm getting a 200 status code in the network tab but the data is not showing up on the browser.
Network showed no error 200 status code
I have added the _redirects file in the public directory and I think the redirect is working as I'm getting a 200 status code in the network tab but the data is not showing up on the browser.
Network showed no error 200 status code
Make sure you have not pushed your .env file to GitHub (in case you have it) because this might be the case of failure.
OR
Make sure you write it correctly Make a file inside the public directory named as _redirects. Inside it write a line of code /* /index.html 200
If this does not work then you need to share your code as well☺️
I finally found an answer! For anyone interested, please read the link below. https://docs.netlify.com/routing/redirects/rewrites-proxies/#proxy-to-another-service.
In my _redirects file I simply put in the proxy I was using. See below. Then add changes to git, redeploy
/* https://api.yelp.com/:splat 200